Solved

Unknown software exception (0xc000000d) occurred

Posted on 2008-06-24
11
5,008 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

696 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