View Full Version : Change Handler Crashing.

02 February 2009, 12:17 AM
I have a change handler that I want to delete the object that was selected when you unselect it.

So let's say you have a cube selected. You select a plane and it deletes the cube. You select a cone and it deletes the plane.

I get an unknown system except and a crash when I do the:

when select $obj changes do delete $obj

How tried killing the change handler before deleting the object but it still crashed. How do I delete the object which the change handler depends on without crashing the change handler?

02 February 2009, 02:30 AM
have you tried with handleAt: set to #redrawView or #timeChange?

If so and it still crashes.. nothing you can do but use a timer to delay your code; the problem is basically that you're deleting the object at a point that other things in max are still processing the selection message(s)

CGTalk Moderation
02 February 2009, 02:30 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.