Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024

Original comment by [email protected] on 23 Jun 2010 at 12:22

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

from crashrpt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
I replaced exit() with ExitProcess()

Fixed in v.1.2.5.

Original comment by [email protected] on 26 Jun 2010 at 12:25

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

from crashrpt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
I don't think that solves the problem. TerminateProcess() should be called 
instead.

Test file:
#include <windows.h>

int main() {
    ExitProcess(1);
}

class tmp {
public:
    ~tmp() { 
        GetProcAddress(0, 0);
    }
} tmp1;

Callstack showing destructor is called:
>   ExitTesting.exe!`dynamic atexit destructor for 'tmp1''()  + 0x4 bytes   C++
    msvcr90.dll!doexit(int code=0x00000000, int quick=0x00000000, int retcaller=0x00000001)  Line 591   C
    msvcr90.dll!_cexit()  Line 427 + 0xb bytes  C
    msvcr90.dll!__CRTDLL_INIT(void * hDllHandle=0x6fb90000, unsigned long dwReason=0x00000000, void * lpreserved=0x00000001)  Line 328  C
    msvcr90.dll!_CRTDLL_INIT(void * hDllHandle=0x6fb90000, unsigned long dwReason=0x00000000, void * lpreserved=0x00000001)  Line 214 + 0xe bytes   C
    ntdll.dll!_LdrpCallInitRoutine@16()  + 0x14 bytes   
    ntdll.dll!_LdrShutdownProcess@0()  + 0x141 bytes    
    ntdll.dll!_RtlExitUserProcess@4()  + 0x74 bytes 
    kernel32.dll!75ba7363()     
    ExitTesting.exe!main()  Line 4 + 0x8 bytes  C++
    ExitTesting.exe!__tmainCRTStartup()  Line 586 + 0x17 bytes  C
    kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes    
    ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes   
    ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes    

It is possible that an object may be in a state where it is not safe to 
destruct, e.g. between delete this->member; and this->member = 0;

Original comment by [email protected] on 1 Jul 2010 at 4:28

  • Added labels: ****
  • Removed labels: ****

from crashrpt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Will fix this in the next release.

Original comment by [email protected] on 2 Jul 2010 at 3:41

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

from crashrpt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Fixed in v.1.2.6

Original comment by [email protected] on 9 Jul 2010 at 5:05

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

from crashrpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.