|
selectionbox solidworks crash onclose
hello.
i have a problem with the selectionbox handler onclose.
i have a sub onclose which is called when i close the selection box. the sub works perfect, but after end sub solidworks crash.
does someone know why?
is there a way to put a handler into a try - catch routine?
or is there a crash report from solidworks?
you should not preform any operations other than cleanups in the onclose command as things are getting disposed so may no longer exist, that will be why it is crashing.
but how can i use the result of the ok and cancel buttons?
answer you should just create a public variable in your class called ok, then in the onclose set ok to true or false based on cancel/ok, then in the afterclose function do all your work
ok thanks!
quick |
|