Avatar of Vlearns
Vlearns

asked on 

dll fails to register!!

Hi Experts,

I am trying to build my dll, i am getting the following ATLASSERT


Debug Assertion failed!

Program C:/Windows/System32/regsvr32.exe
File C:/devel/include/atl/atlbase.h
line 4839

Expression ((lres!=0L) || dwtype==(4))
Abort, Retry, Continue?

This is what happens
:My project compiles corectly,
The dll built by my project fails to tregister for the first time. After i hit retry it reisters successfully.
Please help me resolve this issue.
I am using VC6 on windows xp



please help!







After i hit retry it works but i am not sure what is causing this error.







C++

Avatar of undefined
Last Comment
Vlearns
Avatar of jkr
jkr
Flag of Germany image

That points to some code that is trying to read a value from the registry that is not there were it should be. Try to choose "Retry" and check the values for these parameters in the debugger.
Avatar of Vlearns
Vlearns

ASKER

you mean that this is a runtime error?

it does not give me any warnings about the values its trying to read from reg

where should i hunt for these params?

sorry about this, i am not very familiar

is there some specific place i can look for?

thanks



 
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Vlearns
Vlearns

ASKER

i am trying to do as you suggested.
After i hit the retry key, the dll registers
but i was not able to pinpoint the actual instructiions which are trying to read values from registry that are not there.

after i hit the retry key the build completes and the debugger ends.
How do i set the breakpoints so that i can solve the problem?

thanks
Avatar of Vlearns
Vlearns

ASKER

this is what i am doin
rebuilding the project

i am getting the assert at the end, i hit retry and the message goes away, the dll is registered.

how do i debug this?
Avatar of Vlearns
Vlearns

ASKER

my registry was corrupted.
solved it
thanks
C++
C++

C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.

58K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo