----- Original Message ----- 
Subject: [delphi-en] Re: [FreeDelphiComponent] URGENT!!!*** Declaring Global 
Variable Object


> Hi Sina,
>>      I wrote a class and i want to use an instance of it
>>     as a global variable, I define it in interface part,
>>     and I call its constructor from main form create
>>     event, but whenever I want to use this instance (
>>     global variable) it has become null!!!! what shoud I
>>     do?
> It COULD be that you forgot to call
> inherited create(...)
> in your constructor. Also you may have an error in initialization. Did you 
> write
>
> GlobalVar := MyClass.Create(parameters);
>
> Did you check immediately after creating, whether your variable is <> Nul 
> ?
>
> Happy de-bugging
>
> Bob
>
Or possibly got it declared more than once...

David Bolton 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to