Area :: Header
Sweat, Swearing & Tears
Cupcakes & Critters reflects on what it takes to bring an indie game to market. Watch now
Discussion Groups

Open Reality

Active Contributor
35 Posts
1 Kudo
Registered: ‎08-27-2006

DeviceIONotify interrupted by a change of Parent

50 Views, 0 Replies
12-30-2011 07:18 PM
Running this piece of code during the DeviceIONotify event seems to interrupt the code evaluation and return to Mobu as if the process was done and the DeviceIONotify is never called again for that device.

void MyDevice::DeviceIONotify( kDeviceIOs pAction,FBDeviceNotifyInfo &pDeviceNotifyInfo)
HFBModel testA = new FBModel("TestA");
HFBModel testB = new FBModel("TestB");
testB->Parent = testA; //this line interrupt the code evaluation

Running these 3 lines sees to work well in the Start() process of the same device. How can I run something like this (I need to create a hierarchy of object parented to each other) based on what happens during the DeviceIONotify evaluation?