Patches item #1060610, was opened at 2004-11-04 17:37 Message generated for change (Comment added) made by dukeytoo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474853&aid=1060610&group_id=54790
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Steven Campbell (dukeytoo) Assigned to: Nobody/Anonymous (nobody) Summary: more stable comregister for DLLs and OCXs Initial Comment: I find the com register/unregister API calls to be unpredictable and easily broken. The best for me is to simply use regsvr32.exe. The attached comregister task source file contains an alternate version of RegisterDllServer, called RegisterDllServer2, which does things this way. ---------------------------------------------------------------------- >Comment By: Steven Campbell (dukeytoo) Date: 2004-12-16 15:33 Message: Logged In: YES user_id=709880 I am unable to provide examples, but I'll explain myself further... First, my own background on this subject...I wrote an auto-update program using the API calls, which worked ok, but sometimes seemed to fail to fully register some types. Worst of all, in some cases, the program managed to corrupt the Windows registry beyond repair. Now, even given that my program may have had bugs (I could not find any), the price of failure was very steep (operating systems needed to be re-installed). Fast forward to the present. Using Nant, part of the build process unregisters and then re-registers a set of COM dlls. Only, sometimes, it does not work, and DLLs remain unregistered, or are not unregistered at all. As an experiment, without any other changes, I changed the register/unregister process to use regsrv32.exe. This resolved my problems completely. I strongly recommend that you apply the patch. In my opinion, you risk registry corruption by using the APIs. Occasional use may be ok, but continued use appears to cause problems. ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2004-12-14 00:08 Message: Logged In: YES user_id=707851 The <comregister> task is working quite well for me, but if you can provide examples (repros) of bad behavior .... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474853&aid=1060610&group_id=54790 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ NAntContrib-Developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer