Stacey Is this necesary? In the onclose I'd just remove the form from your internal list, I think you may be initiating another message to the form
HTH Nevne ----- Original Message ----- From: "Stacey Verner" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 11:37 AM Subject: RE: [DUG]: Debugging Troubles > I am calling Release in the OnClose. > > This was all working well in D4, but we have made major changes during the > upgrade to D6. > > Stacey > > -----Original Message----- > From: Bob Osborn [mailto:[EMAIL PROTECTED]] > Sent: Friday, 19 October 2001 11:23 a.m. > To: Multiple recipients of list delphi > Subject: Re: [DUG]: Debugging Troubles > > > Are you calling Free (rather than Destroy) to destroy the forms? > > Bob > > ----- Original Message ----- > From: Stacey <mailto:[EMAIL PROTECTED]> Verner > To: Multiple recipients of list delphi <mailto:[EMAIL PROTECTED]> > Sent: Friday, October 19, 2001 10:39 AM > Subject: [DUG]: Debugging Troubles > > I have an application which is causing me trouble, but I am at a loss as to > how to debug it. > > I need to describe the application and how it works, so that you can > understans my problems so here goes: > > Its a data viewing/editing application for the roading industry. > There is a list of roads from which the user can select 1 or many roads. > The user can view any number of MDI forms which contain information on > things like Signs, Street Lights and Footpaths. > When a user selects a new road we fire a windows message off which the data > forms recieve and update themselves. > We have other messages flying about when different events happen, like one > of the data forms scrolls. > > The problem is arising when I close one of these data forms. I get an access > violation after the destructor has completed. The application is in the > message loop when the access violation occurs, so I don't get much from the > call stack. > > I assume (but I could be wrong) that the exception is occuring because there > is still a message in the queue which is destined for the form that has been > free'd. > > How do I go about debugging a problem like this? > > Thanks > > Stacey > > Stacey Verner Ph: +64-9-4154790 > Software Developer Fax: +64-9-4154791 > DDI: +64-9-4154797 > CJN Technologies Ltd. Email: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > PO Box 302-278, North Harbour, Auckland 1330, New Zealand > 12 Piermark Drive, North Harbour, Auckland, New Zealand > Visit our website at http://www.cjntech.co.nz/ <http://www.cjntech.co.nz/> > > > > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/