I'm having trouble with crashes in Max2008 when calling Interface::SelectNode(). To test, I created a new GUP using the wizard and added the code below. When the plugin starts, it creates a new thread. When the thread first runs, it immediately sleeps for 10 seconds to wait for Max to finish starting. When it wakes up, it then creates 256 spheres in the scene and then goes to sleep for another second. From there on out, the thread wakes, selects the i-th sphere, and then sleeps again. The loop usually cycles several times through all 256 spheres, but it will always eventually crash within a few minutes. I've tried sleep times between 1 and 1000 ms, and the thing always crashes eventually. The error it gives is "Unhandled exception at 0x0060e684 in 3dsmax.exe: 0xC0000005: Access violation reading location 0x00000288." Is there anything I need to do to ensure proper synchronization between Max and my plugin when selecting nodes to prevent the crash?

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com