exception 10h
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: exception 10h

  1. #1
    Join Date
    Jul 2001
    Posts
    273

    exception 10h

    Hi,
    Several users complain it crashed immediately on their machines
    including windows 95, 95 OSR2, 98.
    It says somthing like:
    MyProg cause an exception 10H in module MyProg.exe at
    0137: 0040e864
    Registers:
    ....
    Stack dump:
    ...


    I tested the software on my company's windows 95, OSR2, 98, xp machines and it works
    fine. I just can not reproduce those crashes, and they are too far away for me to be on site.
    Anyone has a clue on how to debug this problem?
    I appreciared your input.

    I used c++ 6.0 for compile.

  2. #2
    Join Date
    Sep 2003
    Location
    Forever Gone... For Now...
    Posts
    1,515
    Use a map file to determine what code is at 0040e864? If your process is loading at 0x00400000, seems like it's in your EXE. So you should be able to track it down to the exact line of code using a map file, so long as the source you build the map file from is identical to the source that was used to build the program that is on site.
    Thought for the day/week/month/year:
    Windows System Error 4006:
    Replication with a nonconfigured partner is not allowed.

  3. #3
    Join Date
    Sep 2003
    Location
    Forever Gone... For Now...
    Posts
    1,515
    Oh... 10h, from MSKB 150314 - "What Are Fatal Exception Errors":

    16 (10h): Coprocessor Error Fault
    This interrupt occurs when an unmasked floating-point exception has signaled a previous instruction. (Because the 80386 does not have access to the Floating Point unit, it checks the ERROR\ pin to test for this condition.) This is also triggered by a WAIT instruction if the Emulate Math Coprocessor bit at CR0 is set.
    Thought for the day/week/month/year:
    Windows System Error 4006:
    Replication with a nonconfigured partner is not allowed.

  4. #4
    Join Date
    Jul 2001
    Posts
    273
    I used "crashfinder" to detect the position in the code. And the position is not in my code !!!!

    What do your quotes about the coprozessor mean ???

  5. #5
    Join Date
    Sep 2003
    Location
    Forever Gone... For Now...
    Posts
    1,515
    Originally posted by Ralf Schneider
    I used "crashfinder" to detect the position in the code. And the position is not in my code !!!!
    Where is the crash, then?
    And what's with
    MyProg cause an exception 10H in module MyProg.exe at
    That points to MyProg.exe...
    Other similar messages in the KB are:
    PSS ID Number: 315215
    Lrun32 caused an exception 10h in module SWFLASH.OCX
    That points to the OCX which contained the code that caused the exception.
    PSS ID Number: 273860
    Winproj caused an exception 10H in module WINPROJ.EXE at address
    PSS ID Number: 257630
    PROJECT1 caused an exception 10H in module MSVBVM60.DLL at 015f:66024d53
    PSS ID Number: 287719
    Wmplayer caused an exception 10H in module Wmvcore.dll at 017f:739253c6
    PSS ID Number: 264804
    FRONTPG caused an exception 10H in module FPEDITAX.DLL at
    In each case, the faulting module is identified by Windows... In your case, it would seem that MyProg.exe is causing the problem.

    What do your quotes about the coprozessor mean ???
    According to MSDN, that's what exception 10h is.

    I'm guessing that your users get a blue screen with the information you posted?
    Thought for the day/week/month/year:
    Windows System Error 4006:
    Replication with a nonconfigured partner is not allowed.

  6. #6
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    Ciao, Andreas

    "Software is like sex, it's better when it's free." - Linus Torvalds


    Article(s): Allocators (STL) Function Objects (STL)

  7. #7
    Join Date
    Jul 2001
    Posts
    273
    I guess, the problem will caused by a referenced but uninitialized float-variable.
    I will send the new file to the user to test it.

  8. #8
    Join Date
    Sep 2003
    Location
    Forever Gone... For Now...
    Posts
    1,515
    Originally posted by Ralf Schneider
    I guess, the problem will caused by a referenced but uninitialized float-variable.
    I will send the new file to the user to test it.
    Post back with the results...
    Thought for the day/week/month/year:
    Windows System Error 4006:
    Replication with a nonconfigured partner is not allowed.

  9. #9
    Join Date
    Jul 2001
    Posts
    273

    Thumbs up

    that's it !
    There was an uninitialized float-variable used in a cast operation:

    float f;
    WORD w=(WORD)f;

    I think, the exception will occur on these PCs in any situation an uninitialized float-variable is used !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center