PDA

View Full Version : createframe - can i deleteframes?


stewart
15-06-2007, 01:22 PM
i was jsut wondering if it was possible to delete frames that have been created or if i have to hide them all and show them etc

Tunga
15-06-2007, 02:02 PM
Can't see anything on WoWWiki that would do it. I'm kind of guessing but if you remove all references to it then shouldn't garbage collection take care of it?

Duugu
15-06-2007, 03:10 PM
Nope.
Not possible to delete frames.
Had the same problem a few moth ago with an addon that needs many, many frames.
I'm now re-using old temporary unused frames to avoid creating to many new frames.

Rowaa
15-06-2007, 04:13 PM
No, you can't delete frames. You can remove Lua-side user data associated with frame by nil-ing it completely, but C-side generated frame will still stay around. Threfore, as Duugu says, if you need many frames over time, save and reuse.