I believe that you achieve that with:
- disconnectobject
- destroy command on your obect instance..
So if ole_1 is your object you should write:
ole_1.disconnectobject()
if isvalid(ole_1) then destroy ole_1.
But this doesn't do anything for the files in use from your ole object, That check should be on the ole object destructor (not in pb) and I don't know if this is the case. It's the object creator who can do that kind of check in that event....
Andreas.