Giter Site home page Giter Site logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Suppose there are two threads A and B in One process(suppose pid = 123 ).
When A's CrashHandler Destoryed,the m_pid(123) of A will be removed from 
g_CrashHandlers.m_map.B's CrashHandler needs to be destoryed too,when it 
destory,there 
will no 123(m_pid) in g_CrashHandlers.

See:
std::map<int, CCrashHandler*>::iterator it = g_CrashHandlers.m_map.find(m_pid); 
g_CrashHandlers.m_map.erase(it);

Original comment by [email protected] on 8 Sep 2009 at 3:11

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

from crashrpt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Sry,I read code of old version.
I discover the new version is thread-oriented, and I think m_pid is not 
essential need.


Original comment by [email protected] on 8 Sep 2009 at 3:31

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

from crashrpt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
1. CrashHandler map is not shared between several processes. As FAQ states, you 
can't
use crashrpt across process boundaries. You should install exception handlers 
in a
process once. Typically you do that in the *main()* function. We don't plan to 
change
this design, because we can't imagine how you can share exception handlers 
between
several processes.

2. The SetUnhandledExceptionFilter() works on per-process basis. This means you
should call it once in your main() function. No need to call this function in 
every
worker thread you have. You can write a simple test application to ensure that.

3. The current implementation uses m_pid, but you can't share CrashHandlers 
between
several processes. Just ignore this implementation detail.

Original comment by [email protected] on 8 Sep 2009 at 3:35

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

from crashrpt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
After commenting/discussing, I hope we agreed this is not an issue.

Original comment by [email protected] on 2 Nov 2009 at 5:35

  • Changed state: Invalid
  • 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.