How to say a pointer has pointed to NULL in an application rather than just crashing?
-
Hello everybody! I have been encountering some difficulties with my applications and it constantly crashes. Lacking VC++ at the place of installment, it basically gives a dialog from the system stating a page fault has occurred. The error could be a pointer pointing to NULL, moving ptrs to garbage areas, or anything..but the only information I get is a page faullt has occurred, which really isn't helpful. Is there another way that will give more details about the error? Cheers, wilche
-
Hello everybody! I have been encountering some difficulties with my applications and it constantly crashes. Lacking VC++ at the place of installment, it basically gives a dialog from the system stating a page fault has occurred. The error could be a pointer pointing to NULL, moving ptrs to garbage areas, or anything..but the only information I get is a page faullt has occurred, which really isn't helpful. Is there another way that will give more details about the error? Cheers, wilche
You need to catch the exception and then print out a stack dump to let you know where it crashed. There are some debuggin libraries available on codeproject that will handle stack dumps. Todd Smith