Thread overview
Assertion Failue : toobj.c
Feb 16, 2010
Ezneh
Feb 16, 2010
Don
Feb 17, 2010
Walter Bright
Feb 17, 2010
Ezneh
Feb 17, 2010
Ezneh
February 16, 2010
Hello there, i'm trying to make the win32.lib with the win32 binding available on dsource.org, but I have an error :


code      accctrl
code      aclapi
code      aclui
Assertion failure: 'classinfo->structsize == CLASSINFO_SIZE' on line 870 in file
 'toobj.c'

abnormal program termination
make: *** [win32.lib] Error 1


I don't really know if it's the binding which has bugs but I found the toobj.c file in the dmd compiler's sources.


So, I'm using the latest dmd stable compiler for dmd 1 (1.056) and tango 0.98. I got this error with dmd2beta, dmd1.033, dmd2.040 too (I also used tango 0.99.9 kai).

That's why I'm not sure this error is a bug from dmd's compilers or if it's the fault of the binding.


Well, it's not really the place but I also wanted to know if it exists a win32 binding which is most up-to-date and complete that the one I want to use. Is there something easiest to use to make GUI and / or as recent as possible ?

( I tried GTKD, wxD, DFL but I got errors from all of them ... I don't know what I'm doing so wrong to don't have chance with libraries ...)


Well, sorry for my poor English and for this long topic.
February 16, 2010
Ezneh wrote:
> Hello there, i'm trying to make the win32.lib with the win32 binding available on dsource.org, but I have an error :
> 
> 
> code      accctrl
> code      aclapi
> code      aclui
> Assertion failure: 'classinfo->structsize == CLASSINFO_SIZE' on line 870 in file
>  'toobj.c'
> 
> I don't really know if it's the binding which has bugs but I found the toobj.c file in the dmd compiler's sources.

Yes, that's a compiler bug. It's never been reported before.
(Although see bug 1008, maybe it's a mismatched DMD/Phobos problem?)

 I've tried but cannot reproduce the problem using cygwin on WinXP and the latest win32 from dsource (BTW, using gnu-specific extensions on a makefile for Windows headers is kinda weird). Please create a bugzilla report giving as enough details to have a chance to reproduce it.
February 17, 2010
Don wrote:
> (Although see bug 1008, maybe it's a mismatched DMD/Phobos problem?)

Odds are very high it's a mismatched DMD/Phobos.
February 17, 2010
Walter Bright Wrote:

> Don wrote:
> > (Although see bug 1008, maybe it's a mismatched DMD/Phobos problem?)
> 
> Odds are very high it's a mismatched DMD/Phobos.


I'm not using phobos when I'm trying to make the lib.
I'm using tango and I tried with tango 0.98 and 0.99.9 kai.

Is it possible that's a mismatched with DMD/Tango ?
February 17, 2010
Ok I found that the error comes from some .d files from the binding.

Anyway, is ther another win32 api available for D language ?

If not, I'll try to resolve the bugs by myself.


Sorry to take your time for that.