ReleaseMutex Error

Posted on 2006-05-15
Last Modified: 2007-11-27

I have a customer that reported that drwtsn32.exe reports

  faulting module kernel32.dll
  The exception generated was c00000fd at address 7C8024E5
  (kernel32 ReleaseMutex)

After my app closes.  Of course, I can't re-create the error.  

The error message appears randomly, quite often on one workstation, infrequently on one other workstation, and not at all (so far) on five others.  We have more than 300 customers, and this one is the only customer that has reported this.

I am using Delphi 7, and do not call ReleaseMutex in my code.  I am also using EurekaLog, and my app closes without raising an EurekaLog exception, so I assume that my app is closing correctly.

Any ideas on how to approach this problem?

Thanks in advance.

Howard Denmark
Question by:HDenmark
    LVL 23

    Accepted Solution

    First is to realize that there's something odd about that cusromer's environment (unless all the others are remarkably uniform).  

    At first blush, it sounds like dll hell.  Probably some widely used dll has been replaced at their site by some other piece of software they use.

    Presuming you can't travel to their site or remote into them, I'd have them install Depends

    on of their frequently failing boxes, profile your app, then have them send you the generated log file (.dwi) so you can see the chain of dll calls leading up to the failure.  You then call them back to get the version info for each of the called dlls.

    Emphasize that only their site fails and it would be in the best interests of both of you to find out what is non-standard about them.

    Author Comment

    cookre, thanks for the idea.  

    I've downloaded Depends and am studying it.  This is new ground for me (I may need the other kind of Depends before I figure all this out).

    It seems to me that sending the Depends files and a BAT file to the customer might be the easiest way to get him to profile the app by simply running the BAT file.  Does that make sense to you?

    I'm reading the Depends help and can't even see how to specify the app on the command line.  Is it as simple as Depends.exe appname options?  If not, can you direct me to some tutorials that show examples of the Depends console commands?  

    LVL 23

    Expert Comment

    I just looked at its help for the first time, told it to maximize its search capabilities, went to the index, typed in 'command', and up popped a gazillion options.

    depends /?

    will also show command line options.

    If you've the time to fiddle, you might be able to parse the dwi file on the customer machine to identify dlls called and then get their version info programmatically.

    Author Comment

    Darn, you're good!  Thanks!

    Featured Post

    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

    Join & Write a Comment

    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    729 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

    19 Experts available now in Live!

    Get 1:1 Help Now