几何尺寸与公差论坛

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

【转帖】vista and addin dll problem

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

本版积分规则

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

GMT+8, 2024-12-22 13:25 , Processed in 0.035406 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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