Strange null pointer exception
Hello everyone, i post this because it's been 3 hours i'm trying to resolve this strange error. This causes my editor to crash, so i now launch my editor with visual studio on debug mode.
so here are my references to my widgets
i initialize them here:
and then i show them here:
the thing i dont understand is that the project launch well, the main menu is showed and then when i naviguate to my Play Menu, i have an exception :
the exception is thrown at this line:
the thing is that i checked this variable and this code should not be accessed if the wplaymenuref is a null pointer. Thank you for helping me, i'm confused !
asked Jun 12 '17 at 12:38 PM in C++ Programming
You are checking if it is NULL, that is 0x00000000. The variable is instead 0xFFFFFFFF. Thus it passes your test and it does not crash.
It is not a nullpointer exception, it is an access violation error because you try to access RAM outside of what you have. Something before it failed and windows returned 0xFFFFFFFFFF which is the invalid handle error.
answered Jun 12 '17 at 12:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here