查看单个帖子
旧 2009-04-12, 07:35 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】selectionbox solidworks crash onclose

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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)