I have a crash that is caught in Sentry.
CWnd::IsWindowVisible Unhandled Fatal Error: EXCEPTION_ACCESS_VIOLATION_READ
I downloaded the mini dump file (dmp) and ran through Visual Studio 19. The crash is occurring in the method:
BOOL CWnd::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
I'm including a screen shot because one of my questions is:
Where exactly is the crash? Is the line (screenshot) really representing the crash?
Using the debugger I can see that the parameter message coming into the method is 275 which is
0113 275 WM_TIMER
See for example: https://wiki.winehq.org/List_Of_Windows_Messages. My questions:
- Where exactly is the crash? I don't see how checking for pResult being NULL and assigning lResult to *pResult could cause a crash of any kind and certainly not EXCEPTION_ACCESS_VIOLATION_READ
- In anticipation of somebody stating that the exception is actually elsewhere... a. How do I get the exact location/problem from the dump b. Anyone recognize this type of problem with TIMERS? It's not my code, but I'm already imagining such things as multiple stops of timers, doing something to a Window that no longer exists, etc. Based on EXCEPTION_ACCESS_VIOLATION_READ
- Any clues/ideas how to proceed?
As always, if better asked in another group, or more clarification needed, please let me know. And Thanks!
EDIT - ADDITIONAL INFO Note that Sentry says the program is actually crashing on IsWindowVisible. That certainly isn't present in debugging the dump file (that I can see) and the point of crash as shown by the screen shot doesn't show it, but it might make sense. The OnTimer routine certainly mentions IsWindowVisible().
4. Can IsWindowVisible() crash with EXCEPTION_ACCESS_VIOLATION_READ ?