In main() it succeed because the manager keeps alive. In your further code it gets destroyed right after it was created. Make yourself familiar with the lifetime of objects and with stack/heap allocation.
In main() it succeed because the manager keeps alive. In your further code it gets destroyed right after it was created. Make yourself familiar with the lifetime of objects and with stack/heap allocation.
matthieunc (28th July 2011)
Bookmarks