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:
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:
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:
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
@Genos I edited the question with what happens when I debug the application
– R.Santos
This dataset that you are trying to open in the image exists (I mean, it was created and has not yet been destroyed)?
– Genos
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
– R.Santos
@And how could I verify that this dataset was created and was not destroyed
– R.Santos
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
Let’s go continue this discussion in chat.
– Genos
@Genos This would not have to do with my file . DFM?
– R.Santos