Re: Random behavior using a wrapped C library

2012-02-29 Thread simendsjo
On Wed, 29 Feb 2012 07:44:23 +0100, James Miller wrote: On 29 February 2012 19:30, simendsjo wrote: On Wed, 29 Feb 2012 05:03:30 +0100, Mike Parker wrote: On 2/29/2012 1:10 AM, simendsjo wrote: On Tue, 28 Feb 2012 16:58:13 +0100, Trass3r wrote: http://d.puremagic.com/issues/show_bug

Re: Random behavior using a wrapped C library

2012-02-28 Thread Kagamin
On Wednesday, 29 February 2012 at 06:30:27 UTC, simendsjo wrote: A strange thing is that memory consumption went _up_ when everything was compiled as x32. Data/code/symbols size?

Re: Random behavior using a wrapped C library

2012-02-28 Thread James Miller
On 29 February 2012 19:30, simendsjo wrote: > On Wed, 29 Feb 2012 05:03:30 +0100, Mike Parker wrote: > >> On 2/29/2012 1:10 AM, simendsjo wrote: >>> >>> On Tue, 28 Feb 2012 16:58:13 +0100, Trass3r wrote: >>> http://d.puremagic.com/issues/show_bug.cgi?id=5570 >>> >>> >>> Thanks. I've literal

Re: Random behavior using a wrapped C library

2012-02-28 Thread simendsjo
On Wed, 29 Feb 2012 05:03:30 +0100, Mike Parker wrote: On 2/29/2012 1:10 AM, simendsjo wrote: On Tue, 28 Feb 2012 16:58:13 +0100, Trass3r wrote: http://d.puremagic.com/issues/show_bug.cgi?id=5570 Thanks. I've literally spent hours testing various things without any luck - would have been

Re: Random behavior using a wrapped C library

2012-02-28 Thread Mike Parker
On 2/29/2012 1:10 AM, simendsjo wrote: On Tue, 28 Feb 2012 16:58:13 +0100, Trass3r wrote: http://d.puremagic.com/issues/show_bug.cgi?id=5570 Thanks. I've literally spent hours testing various things without any luck - would have been simpler if I knew asm :/ A blocker for using x64 on linux

Re: Random behavior using a wrapped C library

2012-02-28 Thread Trass3r
A blocker for using x64 on linux then. Use gdc. Better codegen anyway.

Re: Random behavior using a wrapped C library

2012-02-28 Thread simendsjo
On Tue, 28 Feb 2012 16:58:13 +0100, Trass3r wrote: http://d.puremagic.com/issues/show_bug.cgi?id=5570 Thanks. I've literally spent hours testing various things without any luck - would have been simpler if I knew asm :/ A blocker for using x64 on linux then.

Re: Random behavior using a wrapped C library

2012-02-28 Thread Trass3r
http://d.puremagic.com/issues/show_bug.cgi?id=5570

Random behavior using a wrapped C library

2012-02-28 Thread simendsjo
I'm getting some unexpected results (crashes or random behavior) when using a wrapped C struct in a library. I have no idea why this is happening as everything else (including other wrapped structs) seems to work just fine. Could it be some alignment issues..? extern(C): //typedef unsigned