On Mon, 21 Feb 2011, Cosimo Streppone wrote:
> On Tue, 22 Feb 2011 10:39:58 +1100, Jan Dubois <j...@activestate.com>
> wrote:
> 
> > On Thu, 17 Feb 2011, Cosimo Streppone wrote:
> >> If there's no feedback in a couple of days, I'll go on.
> >
> > Currently the code on GitHub fails for me with VC6 on Windows 2000 for
> > 5.8, 5.10, and 5.12.  Interestingly the failures get worse when I
> > copy the api-test-debug\API_Test.dll into the main directory.

As I suspected, there is indeed something wrong with the bundled API_test.dll.
If I compile the DLL myself with VC6, then t/00_API.t starts to pass.

The api-test/Makefile didn't work with VC6 either, but instead of trying to
fix it I just build the DLL manually (debugging version):

  cl /Zi /LD /MD /DAPI_TEST_EXPORTS API_test.cpp /link /def:API_test.def

It still fails test 6 (and 7) of t/01_Struct.t:

dump_struct:
    00: 0x05
    01: 0x00
    02: 0x00
    03: 0x00
    04: 0x00
    05: 0x00
    06: 0x00
    07: 0x00
    08: 0x00
    09: 0x00
    10: 0x04
    11: 0x40
    12: 0x00
    13: 0x00
    14: 0x00
    15: 0x00
    16: 0x78
    17: 0x56
    18: 0x34
    19: 0x12
    20: 0xc0
dump_struct: [mine at 0x0145f8cc] a=5 b=2.500000 c=0x00000000 d=0x12345678
dump_struct:
    00: 0x05
    01: 0x00
    02: 0x00
    03: 0x00
    04: 0x00
    05: 0x00
    06: 0x00
    07: 0x00
    08: 0x00
    09: 0x00
    10: 0x00
    11: 0x00
    12: 0x00
    13: 0x00
    14: 0x04
    15: 0x40
    16: 0xf4
    17: 0x1f
    18: 0xaa
    19: 0x01
    20: 0x78
dump_struct: [yours at 0x01aa1e8c] a=5 b=0.000000 c=0x40040000

The address in x->c is not valid, so it throws an exception when it
tries to print the string.

I'll try to look into it some more next week, but maybe you have
some quick idea what the problem might be.

Cheers,
-Jan


Reply via email to