The problem is:
Object1 sends event using ProcessEvent() method;
Object2 handles the event and should delete Object1 instantly.
How to implement it? I'm trying to avoid delayed destruction schemes (callbacks, etc.).
Language is c++.
SIGSEGV. How to react on event with sender destruction.
SIGSEGV. How to react on event with sender destruction.
### EzPresso.ru - Daylighting Simulation Software Development ###
Ubuntu 9.04 / Windows XP Pro
GNUC / MinGW / wxWidgets 2.9.1
Ubuntu 9.04 / Windows XP Pro
GNUC / MinGW / wxWidgets 2.9.1
I don`t see any suitable method to do this.
- don`t work.
If you have sources there are some variants. ( named constructors, some other).
Code: Select all
A a;
A* a_pointer = &a;
delete a_pointer;
If you have sources there are some variants. ( named constructors, some other).
Win XP (SP0), mingw, wx 2.9.0