Waldemar Lukaszewski wrote:
> So when its set to nil before (after) freeing, i can just check if
> rcvdstream is nil ? And if it exists it wont be nil? 

This is Delphi for kids, first lesson!

MyObject.Free;  // free the instance of TMyObject 
MyObject  := nil; // set the variable/pointer to  nil = #0 

Do it allways in this order! 

Since D5 you can call FreeAndNil(MyObject) which does the same.
 
---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html


> 
> 
> Dnia 29-06-2006 o godz. 17:41 Francois PIETTE napisal(a):
>>> Is there any function to check if RcvdStream is created? My
>>> application creates stream, but sometimes you can call abort
>>> function before creating the stream... i need to check if it was
>>> created, and if not, exit off OnRequestDone event.
>> 
>> Just make sure you set RcvdStream to nil each time you free the
>> stream. So
>> checking if it is created simply means checking if RcvdStream is
>> assigned a
>> value.
>> 
>> btw: You should alsys set variables and propereties to nil when
>> freeing an
>> object instance. FreeAndNil may be of some help.
>> 
>> --
>> Contribute to the SSL Effort. Visit
>> http://www.overbyte.be/eng/ssl.html --
>> [EMAIL PROTECTED]
>> http://www.overbyte.be
>> 
>> 
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://www.elists.org/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>> 
> 
> ----------------------------------------------------
> XII edycja popularnego MIEDZYNARODOWEGO PLENEROWEGO
> FESTIWALU JAZZ NA STARÓWCE. Na otwarcie prapremiera:
> RON JACKSON's FLUBBY DUBBY. Zapraszamy!
> http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fjazzstarowka.html&sid=801
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to