I've found a hiccup in my code. I'm using Delphi 5 against an SQL server 7.0 database. Sometimes when I close my application it terminates successfully - in other instances it causes an 'Access Violation' on the 'end;' of the datamodule 'OnDestroy' event (if I've used a different set of queries in the datamodule). Someone suggested that this might be down to another of the 'live' forms still accessing the components in the datamodule - is there any way I can track this ? As far as I'm aware the forms + datamodules are created and destroyed in the correct order, the datamodule being the second from last thing being destroyed (main form being last with no obvious links to the datamodule in question). Can anyone give me any pointers with this ?
Thanks in advance,
Steve.
Thanks in advance,
Steve.