Hi. I'm developing an ActiveX control, and after compiling and linking in a build, it will be registered. Only problem is that regsvr32 crashes when trying to register it, saying:

Debug Assertion Failed!
Program: C:\WINNT\system32\regsvr32.exe
File: ctlreg.cpp
Line: 520

For more info etc, etc, etc.

After hitting retry twice, though, it usually works. Any ideas of what I might have written to cause this? I have been working with the control alone and just added a few constant variables which are initialized when the component starts.

Sincerely yours

Niklas