Raised This Month: $ Target: $400
 0% 

sourcehook: Is it safe not to REMOVE_HOOK ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Functor
Junior Member
Join Date: May 2006
Old 06-24-2006 , 05:29   sourcehook: Is it safe not to REMOVE_HOOK ?
Reply With Quote #1

Hi,

Is it safe to delete objects with HOOKS left ?
Or, I have to explicitly REMOVE_HOOK for each ?
(I guess it is safe...)
Functor is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 06-24-2006 , 11:54   Re: sourcehook: Is it safe not to REMOVE_HOOK ?
Reply With Quote #2

It's safe in the regard that it doesn't crash, however an internal list builds up of all of the hooks which could get costly, so it would be best to remove the hook before the object is destroyed.
__________________
sslice is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode