Page 1 of 1

BUG: BeforeDisconnect is called after object is disposed?

Posted: Tue 10 Apr 2012 12:19
by FrenkR
Another bug(latest version).
I have *BeforeDisconnect* evet assigned as:

if _Conn.InTransaction then
_Conn.Rollback;

_Conn is placed on TDataModule(named Dm).

If I have _Conn open and I call Dm.Free, I get an access violation(read of address 00000000 -> pointer to disposed object). If I call _Conn.Close() before object is disposed, then a call to event is ok.

Rgds,
Frenk

Posted: Tue 10 Apr 2012 14:40
by AndreyZ
Hello,

Thank you for the information. We have reproduced and fixed this problem. This fix will be included in the next SDAC build.