MAX crash when i try to register a callback

Mar 7, 2010 at 3:59pm

MAX crash when i try to register a callback

Hi all, i’m working on an external with faceAPI.
the problem is that MAX crash when i try to register a callback function as in the sample code of the faceAPI SDK…
the API call to register the function is

void * obj_new(t_symbol *s, long argc, t_atom *argv)
{
...
smHTRegisterHeadPoseCallback(engine_handle,0,receiveHeadPose);
... then CRASH
}

and here the prototype of the function called

void STDCALL receiveHeadPose(void *,smEngineHeadPoseData head_pose, smCameraVideoFrame video_frame)
{
 post("something");
}

anyone can help me?
thanks all
k

#48980

You must be logged in to reply to this topic.