Closed GoogleCodeExporter closed 9 years ago
The problem may be because you call crInstallToCurrentThread2() for the main
thread. The crInstall() function installs the handlers for the main thread, so
you should not install them twice.
Original comment by zexspect...@gmail.com
on 30 May 2012 at 6:09
I checked my code one more time. I call crInstall() only once in the beginning
of app. Then, I call crInstallToCurrentThread2() for every single thread.
However, as I indicated I use dll and lib file which are produced by using
debug build configuration. If they had been produced by release build
configuration, this assertion would have never shown up. I checked
documentation of crashrpt but I couldn't find anything about debug build
configuration.
Original comment by akkayaca...@gmail.com
on 4 Jun 2012 at 8:03
Please clarify what do you mean by saying "I call crInstallToCurrentThread2()
for every single thread"? You should call the crInstallToCurrentThread2() for
all threads _EXCEPT_ the main one, but not for every single thread.
For example, see how the crInstallToCurrentThread2() function is called here
http://crashrpt.sourceforge.net/docs/html/simple_example.html
Another thing you may check is to see the thread ID of the thread where
assertion is rised. You may do this using the Threads window in your Visual
Studio IDE. If the thread where your exception is rised is the main thread,
that means you call crInstallToCurrentThread2() for the main thread, however
you should not do that.
Original comment by zexspect...@gmail.com
on 5 Jun 2012 at 9:09
Closing this issue, because there is no reply from the reporter.
Original comment by zexspect...@gmail.com
on 22 Aug 2012 at 10:18
Original issue reported on code.google.com by
akkayaca...@gmail.com
on 30 May 2012 at 1:26