When I close my application it runs into a protection error and issues a 216 error!
The address given points to the tObject.Free routine, but with several 100 (if not 1000s) of calls to that during close down, it is a little hard to figure out which object that is the problem. It is only just in the last week or so the error has started showing its ugly face, but I can not find anything strange with the latest additions to my form. To my knowledge I have not added other objects to my application but rather simple components. (TabSheet, Panel, ScrollBox, Label, DirectoryList, CheckBox and so on) And it does not matter if I use any components or not. If I close down the application immediately after it is up and running, I still get the error. It does, however, seem to have something to do with which of my other applications have been running in the meantime. The application in question will show different components (using visible propperty only!) depending of it is running in on- or off-line mode. My application does share resources (mutex and shared memory) with other applications, but it is the same no matter in on- or off-line. Is there a limit to how complex a form can be? Number of components? (I seem to have over 900 on the main form alone! (>50 tabsheets in several levels)) Could it have something to do with the number of components (not) visible at close down time ? _______________________________________________ Delphi mailing list -> Delphi@elists.org http://www.elists.org/mailman/listinfo/delphi