Change Handler Crashing.

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  02 February 2009
Change Handler Crashing.

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
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)
  02 February 2009
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 09:19 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.