DOA 4 introducing AV

nv15

Member
I've just upgraded from version 3.4.6 to 4.05 and all of a sudden I'm getting a runtime AV when destoying forms containing TOracleSessions and/or TOracleDatasets. It happens in both Delphi 6 and 7.

Changing back to version 3.4.6 the problems gone and everything works fine.

The really weird thing is, that although all my existing forms with DOA components come up with an AV when destroying/closing, any new form with DOA components on it made after the upgrade work without any errors. This also applies to forms that seem to be 100% identical!

I have of course made sure, that everything is rebuild etc. after the upgrade, so I'm really lost here. Could anyone please help?

Best regards

Jonas :confused:
 
UPDATE!

I found and solved the problem, but I still believe it's a bug.

Apparently what causes the AV is when I have a TOracleSession object (in "design"-mode)on the Form and a TOracleDataset connected to it.

At runtime I never use the TOracleSession object on the form, rather I change the TOracleDataset.Session property to point to a global TOracleSession object.

The problem was solved by simply deleting the design-time connection between the TOracleSession and TOracleDataset objects on the form. In other words I reset the TOracleDataset.Session property to nil at Design-/compiletime.

Hope you'll have a fix in your next version, so that it acts like version 3.4.6

Best regards

Jonas
 
Back
Top