|
2 registered members (AndrewAMD, TipmyPip),
12,403
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Push stuff on to garbage collection stack?
[Re: Futurulus]
#178836
01/20/08 02:20
01/20/08 02:20
|
Joined: Mar 2002
Posts: 580 San Francisco
clone45
OP
User
|
OP
User
Joined: Mar 2002
Posts: 580
San Francisco
|
Quote:
Be sure to check if on_exit is already defined so you don't mess up the other programmers' exit routine.
Hi Futurulus,
I thought about that, but as you pointed out I didn't want to set on_exit in my library for fear that I would interfere with the other programmer's code. If there's no way to push trash on to the "garbage stack", then I'll do what you suggest that optionally use the on_exit event to help make sure that the structures are cleaned up.
Thanks! - Bret
|
|
|
|
|
|