You probably free assigned memory multiple times and should review your code with a magnifying glass...
> -----Original Message----- > From: Smith David G (Finance) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 12, 2005 5:53 PM > To: [email protected] > Subject: [delphi-en] AV on shutdown > > > > I have a D7 application that's sometimes give an access violation when > it closes. It doesn't happen every time, but it is consistent; if I do > certain things while it's open it will give the AV. I traced it to > FinalizeUnits in the system unit and then to _LStrArrayClr which appears > to be freeing memory for unreferenced strings. The program does a lot > of Windows API calls with Pchars. Some of it is old code with StrAlloc, > StrDispose, etc. > > Any insight or suggestions would be appreciated. > > Thanks, > David > ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

