Board index » delphi » System Illegally Re-Entered
K M Payne
![]() Delphi Developer |
Fri, 24 Aug 2001 03:00:00 GMT
System Illegally Re-Entered
I have a routine that creates forms dynamically from their classname.
Unfortunately, I get intermittent "System Illegally Reentered " crashes. When a new form is required for the application. It is defined as In the unit that defines the form, I have a RegisterClasss staement in I can then instantiate the form like this : procedure TFormFactory.CreateForm(ViewWanted : TView); var begin if thisPersistentClass=nil {cast the persistent class returned from GetClass to a class of {create instance of that particular class of form} This routine works fine, but crashes intermittently with a "System ThisForm:= ThisFormClass.create(frmMain); The problem seems to arise after previous instances of the form type |