Solved

Unknown software exception (0xc000000d) occurred

Posted on 2008-06-24
11
4,791 Views
Last Modified: 2008-07-08
One of our C++ applications developed using MSVC++ 6.0 started throwing the following error:

The exception unknown software exception (0xc000000d) occurred in thte application at location 0x7814820c.

We are running Windows 2000 workstations and the strange thing is, it only occurs on 2 of the 5 workstations where we run the application.  It only happens for those users under a single scenario.  I can not reproduce the error on my development workstation and therefore am unable to debug.  I started peppering the code with writes to the log to try to narrow down where the error is occuring.  It is happening in some database access routines (though I have not completely narrowed down the cause).  We use ADO for our data access.
0
Comment
Question by:jribble
  • 5
  • 4
  • 2
11 Comments
 
LVL 40

Expert Comment

by:evilrix
ID: 21855651
This is a stop error, right? If so this is what it means...

http://msdn.microsoft.com/en-us/library/ms818798.aspx
0
 

Author Comment

by:jribble
ID: 21855713
I'll check to see if we installed any new hardware before this error started to occur.  

This error is happening in one of our homegrown applications and the workstation is otherwise running fine, so I'm not sure the link you gave is applicable.
0
 
LVL 40

Expert Comment

by:evilrix
ID: 21855731
Well, assuming it is a stop error you are getting this is the 'documented' reason for it according to Microsoft. If you can generate a crash dump file and post it here I can analyze it for you. That will, hopefully, reveal a little more.
0
 

Author Comment

by:jribble
ID: 21855771
Do you know how I might create a crash dump file?  
0
 
LVL 40

Expert Comment

by:evilrix
ID: 21855825
>> Do you know how I might create a crash dump file?
This this is a stop error (BSOD) you should find a minidump in the c:\windows\minidumps folder. If it's not a BSOD then you can try using DebugDiag to generate a memory dump.

http://www.microsoft.com/downloads/details.aspx?FamilyID=28bd5941-c458-46f1-b24d-f60151d875a3&displaylang=en
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 40

Expert Comment

by:evilrix
ID: 21855830
>> c:\windows\minidumps
Sorry, I think that should have been "c:\windows\minidump"
0
 

Author Comment

by:jribble
ID: 21856070
We are NOT seeing any dump files, nor any event logged.   The workstation is configured to write a small memory dump.  It is supposed to write to %systemroot%\minidump.  There is no minidump directory.  We are going to try to get a complete system dump.

0
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 21890101
>>>> This is a stop error, right? If so this is what it means...
From my experience the error must not be necessarily a stop error. It could be any wrong exception call e. g. by memory corruption. The instance that it happened only on certain machines possibly can be explained that these machines/users were using different libraries (dlls) e. g. have a different access or sql server driver. Or it could happen because these machines/users have more/less/different processes running than others so that a programming error leads to an exception while it doesn't on other machines.

I remember a similar problem with ADO  maybe a year ago. The problem was that the buffer passed to ADO to take the result set was a local buffer which was freed after calling the ADO. Then crashing depended on whether the memory was used for other purposes in the meantime while ADO asynchronously wrote data to the wrong buffer address. If you could narrow the issue to ADO I would thoroughly analyze each ADO call whether the passed buffers actually were sized correctly and were pointing to heap memory which wasn't freed before ADO returned the result set.

Regards, Alex
0
 
LVL 40

Expert Comment

by:evilrix
ID: 21890878
>> From my experience the error must not be necessarily a stop error
This is why I asked if it was a stop error!
0
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 21891148
The MSDN indeed says that 0000000d was a stop error. You don't need to weaken that statement. My comment was intended to add information and not to object against what you found out.
0
 

Accepted Solution

by:
jribble earned 0 total points
ID: 21899062
evilrix,

I tried DebugDiag to generate a memory dump, but was unable to get it to work.

In the meantime, I was able to repeat the error on my development workstation and debug the issue.  It turned out to be an "invalid" database date that was causing the issue.

I am going to withdraw this question.

Thank you for your help.

Joe
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now