Home » U++ Library support » U++ Callbacks and Timers » manually creating callback
manually creating callback [message #41865] |
Sat, 01 February 2014 03:30 |
piotr5
Messages: 107 Registered: November 2005
|
Experienced Member |
|
|
I get Invalid memory access! with the following code (with and without MT flag):
#include <Core/Core.h>
CoWork cw;
struct delme : public CallbackAction{
virtual void Execute() {}
};
CONSOLE_APP_MAIN
{
delme d;
cw.Do(Callback(&d));
cw.Finish();
}
how does this differ from the callbacks created by the actual generator functions? for example if I instead write
cw.Do(callback(&d,&delme::Execute)) it works fine.
[Updated on: Sat, 01 February 2014 05:12] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 19 17:53:00 CEST 2024
Total time taken to generate the page: 0.05300 seconds
|