Discussion:
How to debug a vc2005 .dll registration under regsvr32
(too old to reply)
Tomasz Pyra
2008-03-07 15:34:56 UTC
Permalink
I just switched from VC 2003 to VC 2005.
I converted my project (a .dll project), everything compiles and works
fine, but I can't debug registration process under regsvr32.exe

In project properties, in debugging sheet a command is:
C:\WINDOWS\system32\regsvr32.exe, with path to my output file as argument.

It works when I press F5 - a regsvr32 is starting, DllMain and
DllRegisterServer are called, but I can't debug it (breakpoints are
disabled after I start debugger).

I am nearly sure, that my .dll is debug dll (all linker and compiler
debug options are set).


Under vc 2003 debugging of same project is ok - registration stops on
breakpoints.

How to debug registration process also in vc 2005?

My system is XP Professional x64 with Visual Studio 8.0.50727.762
Project is C++ .dll
Nasir
2008-03-09 04:26:00 UTC
Permalink
Post by Tomasz Pyra
I just switched from VC 2003 to VC 2005.
I converted my project (a .dll project), everything compiles and works
fine, but I can't debug registration process under regsvr32.exe
C:\WINDOWS\system32\regsvr32.exe, with path to my output file as argument.
It works when I press F5 - a regsvr32 is starting, DllMain and
DllRegisterServer are called, but I can't debug it (breakpoints are
disabled after I start debugger).
I am nearly sure, that my .dll is debug dll (all linker and compiler
debug options are set).
Under vc 2003 debugging of same project is ok - registration stops on
breakpoints.
How to debug registration process also in vc 2005?
My system is XP Professional x64 with Visual Studio 8.0.50727.762
Project is C++ .dll
i use ::debugbreak().. and keep project open while registering.. some time i
put one mesgbox before calling ::Debugbreak(),( when it doesnt break
sometimes.. )
hope this will work..
Tomasz Pyra
2008-03-10 08:06:31 UTC
Permalink
Post by Nasir
Post by Tomasz Pyra
How to debug registration process also in vc 2005?
i use ::debugbreak().. and keep project open while registering.. some time i
put one mesgbox before calling ::Debugbreak(),( when it doesnt break
sometimes.. )
hope this will work..
When ::DebugBreak() if executed, regsvr32 shows "DllRegisterServer in
my.dll failed. Return code was: 0x80000003" and exits. Without any
action in debugger.
With or without MessageBox gives still same effect.
--
PMS++ PJ S+ p+ M(+) W+>+++ P++:++ X(+) L++ B+ M+ Z++(+++) T- w- CB++
http://free.of.pl/h/hellfire/
d***@gmail.com
2008-03-16 08:30:58 UTC
Permalink
Post by Tomasz Pyra
Post by Nasir
Post by Tomasz Pyra
How to debug registration process also in vc 2005?
i use ::debugbreak().. and keep project open while registering.. some time i
put one mesgbox before calling ::Debugbreak(),( when it doesnt break
sometimes.. )
hope this will work..
When ::DebugBreak() if executed, regsvr32 shows "DllRegisterServer in
my.dll failed. Return code was: 0x80000003" and exits. Without any
action in debugger.
With or without MessageBox gives still same effect.
--
PMS++ PJ S+ p+ M(+) W+>+++ P++:++ X(+) L++ B+ M+ Z++(+++) T- w- CB++http://free.of.pl/h/hellfire/
Could you see ur messagbox popping up???
Ben Voigt [C++ MVP]
2008-04-17 15:19:36 UTC
Permalink
Post by Tomasz Pyra
Post by Nasir
Post by Tomasz Pyra
How to debug registration process also in vc 2005?
i use ::debugbreak().. and keep project open while registering..
some time i put one mesgbox before calling ::Debugbreak(),( when it
doesnt break sometimes.. )
hope this will work..
When ::DebugBreak() if executed, regsvr32 shows "DllRegisterServer in
my.dll failed. Return code was: 0x80000003" and exits. Without any
action in debugger.
Check that your debugger settings for breakpoint exception are "break
always", because the behavior you are seeing looks like the setting is
"break if not handled".
Post by Tomasz Pyra
With or without MessageBox gives still same effect.
Loading...