On Mon, 18 Apr 2011 09:54:28 +0200
Wimpie Nortje <wimpienor...@gmail.com> wrote:

> Hi
> 
> When does the self pointer's value become valid?

In NewInstance, so before the constructor is called.

 
> I need a reference to the object being created inside the object's own
> create method. The last statement in Create uses self, but that causes
> program crashes.
> 
> Is this too early to use self? Is there another way?

There is probably a bug in your code, but without seeing the code
there is no way to tell.

Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to