I think this is pretty basic. Today I was building a dynamic link project which statically link to ATL. While building it, it hangs on the “Performing registration” stage and didn’t proceed. I can see there is a regsvr32.exe in task manager. I guess this process it doing registration work. But it never ends.
So I canceled the build and try again, then I have some unresolved external symbol problem. Does anybody can explain to me why this is happening? thank you very much in advance!
Platform(Windows 7 64, VS 2008)
Best regards,
regsvr32.exeis loading your DLL, and calling itsDllRegisterServerexported function. Supposedly it freezes, you can check it with task manager, Process Explorer, or debugger – attaching to frozen process. It is quite likely that the cause is thus within your DLL and you need to resolve it, attaching with debugger, or just starting debugging session withC:\Windows\syswow64\regsvr32.exe <full path to your DLL>.Not that if your DLL is 32-bit, then you need
syswow64\regsvr32.exe, and notsystem32\regsvr32.exe(or otherwise the debuggee will just start a child process which will freeze not being debugged).