So why did you say you were unable to compile the application? Compilation error and crashing are two different things.
Your "delegate" variable is uninitialized. It's just a place in memory pointing to some garbage.
I suggest you polish your C++ skills a bit.
Bookmarks