Here's one thread worth reading. It will explain why shouldn't you allocate widgets on the stack.
J-P Nurmi
Forum Rules
Bookmarks