Tech Support Forum banner
Status
Not open for further replies.

System DLL user32.dll was reallocated in memory

3.7K views 4 replies 2 participants last post by  Raddy13  
#1 ·
I am running Windows XP, SP 3. While running a long execution of some C++ code (in Visual Studio 2008) I get an "Illegal System DLL Relocation" error. The full error message is:

"The system DLL user32.dll was relocated in memory. The application will not run properly. The relocation occurred because the DLL Dynamically Allocated Memory occupied an address range reserved for Windows system DLLs. The vendor supplying the DLL should be contacted for a new DLL."

When I click OK on that error box, I get a second error (from Visual Studio I believe):

"The exception unknown software exception (0x40000015) occurred in the application location 0x7857baa4"


Searching around I found that this problem could sometimes be caused by an update (which I don't have installed). Also, it seems like all of the other times people report this error, it is on some program start-up. However, this happened in the middle of the night for me when I was running a lengthy program (> 2 hours into the run).

What could be the problem here? Could it have anything to do with the fact that I'm using a school setup computer (even though I have administrator rights on it)?

Thanks.
 
#3 ·
I am running the code. It seems to happen at the same point in the run every time, but I don't think it is happening because the computer is running out of memory.
 
#5 ·
It's hard to narrow it down because this is a custom made program. If other C++ you've built in Visual Studio run without a problem, I would look through your code. The error seems to indicate you're attempting to allocate memory that Windows has reserved. Perhaps your pointers are using address ranges they aren't allowed to?
 
Status
Not open for further replies.
You have insufficient privileges to reply here.