• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Visual C++ & User32.dll

krwell

Senior member
Hey guys I just got a new job and was given a program to finish. Its a Windows CE program written in Emebbed C++. I keep getting a "Unhandled exception in Prog.exe (USER32.DLL) 0xC0000005: Access Violation". i'm not sure where to start looking for the error. Any help?
 
Well access violations are usually bad pointer references, doesn't your IDE have a debugger that you can step through the code in/
 
Yes, bad pointer refs or going off the end of an array or buffer (the infamous "buffer overruns" that allow all the hacks into MS products).

Step through. If it only happens in release mode it could also be caused by using a variable without initializing it. If you can't step, add writes to a log file or messageboxes so you can narrow down where it's crashing.

If you can run your code on the emulator, do a BoundsChecker build and run that. Change jobs if they don't have BC (or something comparable) and won't buy it for you.
 
Back
Top