locked
Win32 Application crashes with exception code 0xc000007d RRS feed

  • Question

  • Hi all,

    Well I had no idea where to stick this message since there is no "General
    Win32 Programming" newsgroup. So I'm sticking it in here.

    I'm developing a small (i.e. simple) application using Visual Studio 2005
    and C++. I compile the application and try to run it and after it gives me
    the UAC admin control challenge and I choose Allow, the application instantly
    crashes without so much as a dialog box.

    If I snoop around in the Event Viewer I get:

    Faulting application SetupBootstrapperExe.exe, version 1.0.0.1, time stamp
    0x48c18e16, faulting module USER32.dll, version 6.0.6001.18000, time stamp
    0x4791a783, exception code 0xc00000fd, fault offset 0x0003c25a, process id
    0x13e8, application start time 0x01c90f91be0fb9d0.

    I think it may have something to do with the manifest file so here is my it
    is:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <assemblyIdentity
      version="1.0.0.0"
      processorArchitecture="x86"
      name="Setup Bootstrapper"
      type="win32"
    />
    <description>Setup Bootstrapper</description>
    <dependency>
      <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="x86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        />
      </dependentAssembly>
    </dependency>
    <dependency>
      <dependentAssembly>
        <assemblyIdentity
          type='win32'
          name='Microsoft.VC80.CRT'
          version='8.0.50727.762'
          processorArchitecture='x86'
          publicKeyToken='1fc8b3b9a1e18e3b'
          language="*"
        />
      </dependentAssembly>
    </dependency>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
      <security>
        <requestedPrivileges>
          <requestedExecutionLevel
            level="requireAdministrator"
            uiAccess="false"
          />
        </requestedPrivileges>
      </security>
    </trustInfo>
    </assembly>

    I tried switching the version for 'Microsoft.VC80.CRT' from '8.0.50727.762'
    to '8.0.50608.0', but if I do so, I get the same results.

    I hate the manifest BTW, worse idea I've ever seen. This obscure black magic
    blob of XML is ill documented and there are no tools to just generate one
    based on a series of simple settings.

    Anyway, I'm running this on Windows Vista 64.

    cheers,
    Abbey Chase

    Friday, September 5, 2008 8:43 PM

Answers

  •  

    Hi,

     

    0xc00000fd indicates a “stack overflow” exception.

    There are three possible causes for this error:

    1.    A thread uses the entire stack reserved for it. This is often caused by infinite recursion or you define a large array on the stack.

    2.    A thread cannot extend the stack because the page file is maxed out, and therefore no additional pages can be committed to extend the stack.

    3.    A thread cannot extend the stack because the system is within the brief period used to extend the page file.

    You can debug your program to find the cause of this issue, on how to debug stack overflow issue, you can refer to

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

    http://support.microsoft.com/kb/145799

    http://support.microsoft.com/kb/315937

     

    Thanks!


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. http://forums.msdn.microsoft.com/en-US/vcgeneral/thread/aad4f73b-59e2-4ead-8a11-a19752dfea0a
    • Marked as answer by Yan-Fei Wei Friday, September 12, 2008 11:58 AM
    Thursday, September 11, 2008 7:10 AM