2011/4/27 <michael.vancanneyt@****>: > begin > MyForm.Something; > end; > > and then somewhere > > FreeAndNil(MyForm); > > Which is simply wrong coding in the destructor. > > I don't think you should provide for this. This is encouraging people to > write bad code. They should get an error, and correct their code.
+1 That is just bad coding. Fix the problem at the source, in stead of simply offering bandaids to encourage the developer to continue such bad practices. -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
