Unit 'utility' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

AttemptRemNamedObject

Attempt to remove a named object.

Declaration

Source position: utility.pas line 243

function AttemptRemNamedObject(

  Object_: PNamedObject

):LongInt;

Arguments

Object_

  

NamedObject to attempt to remove. The address of the NameSpace is contained within the NamedObject.

Function result

If the NamedObject can be removed, then it will be removed from the list. Otherwise the routine will just return. If the NamedObject has a removal message associated with it that message will be returned to the owner of the NamedObject.

Description

Attempts to remove an object from whatever NameSpace it's in. You must have found the object first (in order to get a use count) before trying to remove it. If the object is in use or is in the process of being removed, this function will return a failure code. If the object is fully removed, the object will then be available to be FreeNamedObject().

See also

RemNamedObject

  

Remove a named object.

AllocNamedObjectA

  

Allocate a named object.

AllocNamedObject

  

VarArgs Version for AllocNamedObjectA()

ReleaseNamedObject

  

Free a named object.

FreeNamedObject

  

Frees a name object.

AddNamedObject

  

Add a named object to the given namespace.

FindNamedObject

  

Find the next object of a given name.

NamedObjectName

  

Return the name of the object.


Documentation generated on: 2021-07-30