几何尺寸与公差论坛

 找回密码
 注册
查看: 669|回复: 0

【转帖】selectionbox solidworks crash onclose

[复制链接]
发表于 2009-4-12 19:35:11 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 00:33 , Processed in 0.036309 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表