To:
Subject: Returned mail: User unknown
Mailing lists / lazarus / 1999-05
[Fwd: Returned mail: User unknown]
3 messages · 3 people ·
- BBaeseman, Cliff 1
- CCliff Baeseman 1
- NNicolas Aragon 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I wish it were my code that was causing the problem but it is also shane that is having trouble with the exact same thing as well as michael H.
Self is also being affected sometiomes its ok and sometimes it is not..
It is just like or refs are getting blown away.
Cliff
Earlier message 57 lines
To: Subject: Returned mail: User unknown From: Mail Delivery Subsystem <MAILER-DAEMON>…
Hello,
you wrote 13 lines
Cliff, "Assigned" only tell you that the pointer isn't nil. It can't tell you if the address is valid.
I'm *not sure*... but I think that, at least in Delphi, you can trust that global variables are initialized to nil (all zeroes).
Object fields are also nil if the object constructor executes TObject.Create first, which zero all fields. If not, you can't tell which the initial value will be, unless you explicitely assign nil in your constructor.
Local variables are never guarranteed to be nil cause they're taken from the stack, that dynamically holds return addresses, parameters and so on.
For object variables whose lifetime is longer than a function is a good programming practice (but by no means forced) to assign nil just after calling Free. Assigning nil in the constructor also helps to avoid errors. I encourage you to take this precautions at least while developing.
I'm overworked now and most likely I will, during next three or four weeks. I hope to stay in touch, though
greetings
Nico
