Change Handler Crashing.

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 02 February 2009   #1
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?
 
Old 02 February 2009   #2
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)
 
Old 02 February 2009   #3
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 11:12 AM.


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