[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference utrop1::lnx_apo

Title:LinkWorks APO
Moderator:HLDE01::SYSTEM
Created:Tue Feb 22 1994
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:476
Total number of notes:1817

464.0. "DestroyObject method" by ATYISA::61569::coutant () Wed Feb 12 1997 10:45

Hi,

A customer wants to delete all shares when the object is deleted by the 
owner (kind of WIN 95 shortcuts mechanism).
To do it, we think to use the DestroyObject method.
In the help file, I can read:

"Deletes the object obj without regard to its shares."

"If more than one share of the object obj exists, only the visual 
representation (icon) within the compound object parent will be removed. 
Other shares to the object are not removed automatically when the object is 
destroyed; they will become invalid. Refreshing the parent object removes 
invalid object shares."

Does it mean other shares will become invalid and will not be deleted?
Is it advised to use this method or not?
What are the consequences in the database? Not clean?

Thanks

Patrice

T.RTitleUserPersonal
Name
DateLines
464.1maandaj.uto.dec.com::~::ANONYMOUS%Tue Feb 18 1997 15:3315
Patrice,

The description is right. If you have an object which is taken away with
DestroyOject(), you'll still have the icon but as soon as you try to access
it you will get the error that the object no longer exists. After that the
icon disappears. A refresh would take away the obsolete icon also.

This is simply what happens. There are more occasions that you don't always
have what you see. If you share a folder with somebody else and you take an object
out of this shared folder, the icon of that object will not automatically disappear
off the screen of the person you are sharing it with. Unless (s)he registered interest
in this compound object. If the other person tries to access it the same arror would 
popu as with the DestroyObject().

Jos