Error trying to access Database information

Asked

Viewed 59 times

1

I’m migrating an application that was developed in Delphi 7, which used to use the Firebird database, so now I’m making the application communicate with the Postgresql database. I managed, after fixing some errors in the code, to communicate correctly with the bank, but when I will perform certain activities in the application the following error appears when I try to access information from the bank:

inserir a descrição da imagem aqui

I reviewed the Clientdatasets to check if the Active was in False and I found no mistake in them, if you have any ideas

When debugging the program the following error occurred:

inserir a descrição da imagem aqui

Which I believe is the same thing that occurs in the first mistake, so when I try to continue it points out to me the following highlighted line:

inserir a descrição da imagem aqui

  • Well, memory access errors usually happen when you try to access an object that’s already been destroyed. Try debugging the program to see what the problem is. Without more information we can’t help.

  • @Genos I edited the question with what happens when I debug the application

  • This dataset that you are trying to open in the image exists (I mean, it was created and has not yet been destroyed)?

  • It’s just that this source code isn’t really mine, I’m just trying to connect the application to Postgresql, in postgre I’ve recreated all the tables with all the information I had on Firebird, and I haven’t touched anything in the code, by trying to change the Bank he could have changed it, because in Firebird the application works normally

  • @And how could I verify that this dataset was created and was not destroyed

  • During the debug, one step before entering the Open function (indicated in your image), check the value of the dataset. If the instance is invalid Delphi will probably prompt you with an error-like message.

  • @Genos This would not have to do with my file . DFM?

Show 3 more comments

1 answer

0


The problem with access Violation is actually the Rxlib - Delphi 7 component that needed to be installed. Rave Reports error must be connected with this!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.