Re: Discarding shared_ptrs
Willi <[email protected]> Tue, 07 Jun 2011 10:21:24 +0200
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On 07.06.2011 09:15:29, Simon Pickles <[email protected]> wrote: > Well I tried using shared_ptrs and at the end of the function, setting > them to nil in Lua but it doesnt decrement the use_count: Did you force a garbage collection after that? Lua might not immediately delete an unreferenced object, if I remember correctly. ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev