I try to compile my VC++ 6.0 project (with 4 subprojects and a lot of
libs,dll's) in Debug mode.
The aim is to create an add-in in SolidWorks.
I get the dll and can register is but when I start SolidWorks and try to
load my add-in I get the error:

Debug Assertion Failed!
Program blabla.exe
File: afxwin1.inl
Line: 22

I have no idea att all what is going on.
Any help is highly appreciated.

Bob


"Yan K. Avlasov" <_yan_avlasov_@_azimuth.net_> wrote in message
news:%23QWYCZvUDHA.2152@TK2MSFTNGP09.phx.gbl...
> Do you have in your debug configuration any pre or post-build steps what
> execute some commands or run some programs? Note the project it compiles
> that have this problem and check the properties of this project.
>
> "bob" <lbortels@vub.ac.be> wrote in message
> news:enW06NqUDHA.2156@TK2MSFTNGP11.phx.gbl...
> > Hi,
> >
> > I try to compile my VC++ 6.0 project (with 4 subprojects and a lot of
> > libs,dll's) in Debug mode and get 1 error:
> > error executing c:\windows\system32\cmd.exe
> > In Release mode, there is no problem.
> > I work with windows XP Professional
> >
> > Any help is highly appreciated!
> > Bob
> >
> >
>
>

RE: Debug Assertion Failed in SolidWorks.exe by apardoe

apardoe
Thu Aug 14 13:45:57 CDT 2003

>From: "bob" <lbortels@vub.ac.be>
>Subject: Debug Assertion Failed in SolidWorks.exe
>Date: Tue, 29 Jul 2003 13:34:18 +0200
>
>I try to compile my VC++ 6.0 project (with 4 subprojects and a lot of
>libs,dll's) in Debug mode.
>The aim is to create an add-in in SolidWorks.
>I get the dll and can register is but when I start SolidWorks and try to
>load my add-in I get the error:
>
>Debug Assertion Failed!
>Program blabla.exe
>File: afxwin1.inl
>Line: 22
>
>I have no idea att all what is going on.
>Any help is highly appreciated.
>
>Bob
>
>
>"Yan K. Avlasov" <_yan_avlasov_@_azimuth.net_> wrote in message
>news:%23QWYCZvUDHA.2152@TK2MSFTNGP09.phx.gbl...
>> Do you have in your debug configuration any pre or post-build steps what
>> execute some commands or run some programs? Note the project it compiles
>> that have this problem and check the properties of this project.
>>
>> "bob" <lbortels@vub.ac.be> wrote in message
>> news:enW06NqUDHA.2156@TK2MSFTNGP11.phx.gbl...
>> > Hi,
>> >
>> > I try to compile my VC++ 6.0 project (with 4 subprojects and a lot of
>> > libs,dll's) in Debug mode and get 1 error:
>> > error executing c:\windows\system32\cmd.exe
>> > In Release mode, there is no problem.
>> > I work with windows XP Professional
>> >
>> > Any help is highly appreciated!
>> > Bob
>> >

A debug assertion is a truth test that the developer puts into software to
make certain some condition is true at some time during execution. For
example, if you were writing a function to do square roots you might put in
a debug assertion to make certain that the parameter to your function was
positive (ignoring irrational numbers for the sake of the argument.) If the
number isn't positive, the program "asserts" that the truth test failed.

Debug assertions are usually not included in release builds because it
takes extra time to perform the tests. This debug assertion is likely
SolidWorks telling you that you have an error in your add-in. Are you
passing invalid information to one of SolidWorks' functions?