0xC0000005: Access violation at location 0x00000000f41b1a6e on calling SetWindowPos
I am migrating my WIN32 application to WIN64 application. I have compiled the code for x64 platform. While running this application in debug mode I am getting the error message as
"First-chance exception at 0xf41b1a6e in xxx.exe: 0xC0000005: Access violation at location 0x00000000f41b1a6e."
This exception occurs when I execute below code.
SetWindowPos (lpI->hTop, NULL, 0, 0, cx, cy, SWP_NOZORDER | SWP_NOACTIVATE);
Re: 0xC0000005: Access violation at location 0x00000000f41b1a6e on calling SetWindow
I wonder, what kind of help could be provided here. Do you really need an advice like this: Press Retry button and inspect the structure behind lpI pointer? And then understand from the other code who and when puts there the problem value?
Last edited by Igor Vartanov; January 1st, 2013 at 05:21 AM.
Re: 0xC0000005: Access violation at location 0x00000000f41b1a6e on calling SetWindow
Originally Posted by sayajirao
Please help me to resolve this issue.
As Igor mentioned, why not debug the application?
How do we (or you) know if lpI is pointing to a valid window? We don't know, but you should know by debugging your application and seeing what's there.
Bookmarks