几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-04-13, 03:19 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】vista and addin dll problem

vista and addin dll problem
hello all...
this is my first posting here and i need guidance to help solve a problem that i encountered. (i did search these forums, the web, microsoft.com and comp.cad.solidworks before posting this question here).
i have a vb6 add-in dll that i have developed for my own use. it is not very complicated, and collects information from a sw assembly and dumps the info into an xml file.
it works perfectly with:
- sw 2006, sw 2007 and sw 2008 on windows xp professional, both pc and laptop installations.
- sw 2007 and vista on a laptop (sony vaio).
it does not work with:
- sw 2008 and vista on laptop (sony vaio). when i enable the add-in from the [tools]->[addins...] box, sw hangs... i see "not responding" in the title bar.
the amazing thing is it did work a couple of times with sw 2008 + vista on the vaio. in all the cases above, the dll installation and registration were done manually as recommended in the documentation.
all this made my summarize that vista is the culprit. i need help to diagonose the problem/ or if anybody has encountered this problem could help me out?
thanks and regards,
vinodh kumar m.
vinodh,
seems that your addin hangs the sw2008. if it has worked once or twice arter a manual install, try deleting the registry entries related to your library and try registering it again using regsvr32.
regards, basil
"and when you loose control,
you'll reap the harvest you have sown..." (c) pink floyd
solidworks 2008 x64 sp5.0 (production)
solidworks 2009 x64 sp2.0 (testing)
windows xp x64 sp2
core2quad 6600, 4gb ram, 500gb sata, ati firegl v7700 1024mb (softmodded from hd3850), 19" tft
hey vinodh,
did you try to load your addin in debug mode? when you do you should get some form of feedback in your vb6 output window.
cheers,
--stav.
in this world i am nobody...
and nobody is perfect !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
thanks basil gello and stavros antoniou...
i'll try both suggestions, delete/ re-register and use the debug mode. maybe that will help me figure out this thing. (never used the debug mode before... for some reason i never got around to it).
fortunately for me, the dll is deployed for production use in windows xp/ sw 2008 and i have no problems with that set-up. it is only when i try to do something on the go, on my laptop, i have to wait to get back to a xp set-up to do the testing etc. i shudder to think of the time when the production set-up will be upgraded to vista.
btw, i did uninstall everything sw/ addins and cleaned-out the registry before re-installing... still the same problem. also my .net dlls work as expected in vista/ sw 2008.
edit: it appears that none of my other vb6 dlls work either, they all freeze-up sw 2008 w/ vista.
thanks!!!
- mvk
edited: 03/04/2008 at 11:38 am by vinodh kumar m.
vista is a pain in the backside for security. its probably a uac or dep policy stoping vb or some other sinister vista trick.
luke malpass,
that's what i thought too (uac and dep)... considering that it did work a couple of times. i disabled it and still the problem persists.
but it was just my guess and i was hoping for an authoritative answer from knowledgeable developers (i'm not a professional developer).
but lack of information on this problem on the web makes me conclude that this is something obscure, to do with the sw 2008 and vista combination.
- mvk
vinodh,
i have 2 machines with vista and sw2008, one has a lot tighter security than the other. if you send me the file i can test it for you myself tonight. my email is contact@angelsix.com
hi luke malpass...
thank you so much. i was travelling and was not able to post earlier. i'll contact you privately for this.
of-course... let me mention right away that the software is proprietary and the rights are owned by somebody else (definitely not me), and all that kind of thing... but there should be no issues with some private testing.
- mvk
edited: 03/08/2008 at 10:59 am by vinodh kumar m.
we've got the same problem. one addition. my addin is loaded ok when i choose to load it at sw startup. but if i want to load it after sw already started (from menu) when it hangs. i put a breakpoint in the connecttosw() function. it didn't trigger. suppose there is a problem with dll loading to sw. in my case it's a c++ plugin.
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】recompile addin when solidworks is running yang686526 SolidWorks二次开发 0 2009-04-13 01:48 PM
【转帖】intall .net addin yang686526 SolidWorks二次开发 0 2009-04-13 12:22 PM
【转帖】addin application9.dll0 yang686526 SolidWorks二次开发 0 2009-04-13 08:44 AM
【转帖】install a .net dll add-in again yang686526 SolidWorks二次开发 0 2009-04-12 09:29 PM
【转帖】install a .net dll add-in again yang686526 SolidWorks二次开发 0 2009-04-12 06:44 PM


所有的时间均为北京时间。 现在的时间是 11:09 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多