Hi,
I have centralized all scheduling in a single class (will post it soon may be useful to others).
I have one question,
when I schedule tasks for game rooms that get destroyed when no users are there, even though the room is destroyed, the scheduler can still run and access all room variables, and room extension (even if in the admin tool room has been destroyed).
It is not a problem to stop the task if the room is inactive, but I am concerned about memory.
Since room is destroyed but still all properties get traced, when does a room/extension get completely garbage collected?
namaste
Pippo
Scheduler + Garbage Collection question
-
Pippoflash
- Posts: 135
- Joined: 30 Jan 2006, 17:16
- Contact:
-
Pippoflash
- Posts: 135
- Joined: 30 Jan 2006, 17:16
- Contact:
There is a centralized zone extension which has a single scheduler to which I subscribe tasks to be utilized by various room extensions.
The task holds a reference to the room, the extension, and a function to be called.
If I let the task run, even after the room has been destroyed, the task handler still traces the room, and the extension function still gets called.
Now when room is bound to be destroyed the task is removed, and all references set to null, but how can I be sure a room and its extension are really destroyed?
thanks
The task holds a reference to the room, the extension, and a function to be called.
If I let the task run, even after the room has been destroyed, the task handler still traces the room, and the extension function still gets called.
Now when room is bound to be destroyed the task is removed, and all references set to null, but how can I be sure a room and its extension are really destroyed?
thanks
-
Pippoflash
- Posts: 135
- Joined: 30 Jan 2006, 17:16
- Contact:
-
Pippoflash
- Posts: 135
- Joined: 30 Jan 2006, 17:16
- Contact: