FLTK native in 'D'. Would that be useful?

MatthiasM dm at matthiasm.com
Tue Aug 8 23:26:17 PDT 2006


Carlos Santander wrote:
> You forgot to add std/c/osx/qd/quickdraw.d to rev 5287. Also, the 
> previous two revs didn't work (I got "bus error" with both of them)

Thanks. I added the quickdraw.d header file.

If you get a bus error (which is very likely in this early state), it 
would be helpful if you could run 'gdb' on the executable and post the 
first eight or so lines of the traceback. Just enter:

   gdb button
   run
   bt

like so:

 > gdb button
(gdb) run
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000a
0x00003ec0 in _Dmain (args={length = 1, ptr = 0x303710}) at test/button.d:53
53        (cast(ubyte*)null)[10] = 3;
(gdb) bt
#0  0x00003ec0 in _Dmain (args={length = 1, ptr = 0x303710}) at 
test/button.d:53
#1  0x0002c368 in _d_run_main2goFZv ()
#2  0x0002c42c in _d_run_main ()
#3  0x000024a4 in _start (argc=1, argv=0xbffff9a0, envp=0xbffff9a8) at 
/SourceCache/Csu/Csu-58.1.1/crt.c:272
#4  0x0000234c in start ()
(gdb)

Thanks!

Matthias



More information about the Digitalmars-d-dwt mailing list