Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I see this message just before my code breaks and I have the user32.dll in my C:\Windows\System32 directory.

There is no source code available for the current location:

call stack location:
user32.dll!_fnDWORD@4()+0x2f bytes


It seems to happen with this sequence of events, if this helps at all:

final line before break:
pDocNew->SetPathName(OldPath + " *");

When trying to step over it has a runtime break and when I continue it goes to this section of code (this is after attempting to create the variable with the given value as suggested in the solution.
CATCH_ALL(e)
	{
		lResult = AfxProcessWndProcException(e, &pThreadState->m_lastSentMsg);
		TRACE(traceAppMsg, 0, "Warning: Uncaught exception in WindowProc (returning %ld).\n",
			lResult);
		DELETE_EXCEPTION(e);

I know it sounds like an obvious error (there is no source code), but I am not sure how to fix it.

Any help would be fantastic...and much appreciated.
Posted
Updated 28-Jul-11 12:05pm
v3
Comments
Orcun Iyigun 27-Jul-11 19:54pm    
I think something excessively load your CPU usage.

You can point the compiler to the Microsoft symbol server to get more information on the crash.
For this create an environment variable called _NT_SYMBOL_PATH and set its value to symsrv*symsrv.dll*c:\localsymbols*http://msdl.microsoft.com/download/symbols where you can replace c:\localsymbols with any path on your hard disk.
After you do this and restart Visual Studio, the crash should give you more information on what exactly the problem is.
 
Share this answer
 
Comments
YvesDaoust 28-Jul-11 5:09am    
Nice to learn that trick!
AndrewG1231 28-Jul-11 17:43pm    
Forgive the dumb question, but how do you set this in VS2010? I checked this link http://www.codeproject.com/Articles/209517/Configuration-and-Environment-Variables-Visual-Stu, but it is for web design. Is it Right Click on Project --> Poperties --> Configuration Properties --> Debugging and then enter it in the Environment field?
«_Superman_» 28-Jul-11 19:45pm    
In VS 2010, you can either do as I replied or you can go to Tools -> Options -> Debugging -> Symbols and check the Microsoft Symbol Server option. You can now specify a folder in which you want the symbols to be stored.
AndrewG1231 29-Jul-11 17:27pm    
I have done this already....and I am not quite sure what it has shown me. How does this show me more info on my problem?
This is not an error message. This is the debugger telling you that the application stopped somewhere in system routines, where the source code is not available.

The IDE must have given you some other message telling more about the cause (could be Access Violation).

Try the solution by _Superman_.
 
Share this answer
 
v2
Comments
Ashish Tyagi 40 28-Jul-11 10:16am    
Yes this is not an error, good one my +5
Usually when you get that error its because the error occurred within a portion of your project that references some sort of compiled resource. What you have to do to troubleshoot is see if you can cause the crash within your debugger and trace your way up the call stack to see if you're passing an invalid value to some method call that is either processed by whatever infrastructure you're using (such as MFC) or a dll/lib library.

If you're unable to replicate the error in the debugger, then you'll have to make resort to creating a trace file or some similar type of logging.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900