LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default How to create a Delete method which frees memory occupied by my object

Hi Experts,

How do I create a Delete method which frees the memory which is
reserved (by means of the New keyword) for an object (of a home-made
class) ?

I am looking for the opposite of New.

Set MyObject = New MyClass ' - reserve memory for the object and give
me a pointer
MyObject.Delete ' - remove the object from memory and set pointer to
Nothing

To set the pointer to Nothing is the easy (and last) part.
Is there any instruction or function or API that removes the memory
occupied by an object?

I RTFM and STFW but couldn't find it.

Sincerely,

Lex

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete cell memory Bhiravi Excel Discussion (Misc queries) 6 December 21st 06 09:05 PM
Remove object from memory lexcel Excel Programming 8 July 2nd 06 03:16 AM
"Delete" method of a worksheet object Jean-Pierre Bidon Excel Programming 3 January 4th 06 12:04 PM
Object doesn't support this method Andibevan[_4_] Excel Programming 3 September 1st 05 10:07 AM


All times are GMT +1. The time now is 06:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"