The error message is because the value of "cxt" is not valid, i.e. is not a valid pointer to instance of MyCustomClass. Chances are good that it is 0 (NULL).
The error message is because the value of "cxt" is not valid, i.e. is not a valid pointer to instance of MyCustomClass. Chances are good that it is 0 (NULL).
Thanks Chris,
Not valid pointer, that was the problem and yes it was NULL.
It was just the case of changing NULL to this, and now works fine.
Bookmarks