I am making a component myself, but I run in to some problems.
What I do:
$Value=CreateObject(...)
If $Value
$Value.Dosomething
$Value.Kill
EndIf
If $Value
?"Object still exists"
EndIf

When I do this I will see the line "Object still exists".
The reason for doing this is that it runs the component while the component exists it will check for an update. I the update is available it should copy it, but after killing the object.

How can I check if the object is still running?

John