Jonas Maebe wrote: > > On 16 Oct 2010, at 15:46, Martin Schreiber wrote: > >> >> Will it crash if it is empty as in TObject? > > The contents of AfterConstruction don't matter. If the instance is freed > before the constructor had a chance to call AfterConstruction, the self > pointer won't be valid anymore in the constructor and hence the call to > AfterConstruction may crash. > What are the conditions that it crashes if "self" is not used in AfterConstruction? Is there hidden code beside of AfterConstruction after Create() which uses "self"? As written before it does not crash in tmsethread which does not inherit from FPC TThread.
Martin _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal