> *token = new csWeakEventHandler(listener); This is invalid code. You can't use a weak ref like that. Keep in mind that if the only thing that holds a reference to something is a weak reference then the object will be removed. You'll have to rework the code a bit so that after allocation you have a real reference for a while and then you release that reference as soon as you register to the event registry.
I do understand the basic idea of your solution though and it seems like a possibility. -- Project Manager of Crystal Space (http://www.crystalspace3d.org) and CEL (http://cel.crystalspace3d.org) Support Crystal Space. Donate at https://sourceforge.net/donate/index.php?group_id=649 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Crystal-main mailing list Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]