libpng dll functions weird behaviour

Serg Kovrov kovrov at no.spam
Sun Feb 18 09:07:55 PST 2007

I am getting really strange results using libpng dll functions. Values 
retrieved from function calls by return, seems to be random garbage. But 
retrieving values by pointer (function arguments) works ok.

tested setups:
1. libpng13.dll/libpng13.lib v1.2.16
built on my machine with visualstudio2005. lib converted with 

2.libpng13.dll/libpng13.lib v1.2.8
Precompiled. From lib converted with 

Here is minimal test case:
pngtest.d -
libpng/api.d -

Tested with dmd v1.006, and v0.175 (for sake of experiment).

Any help would be really appreciated, I'm about to pull my hairs out =(


More information about the Digitalmars-d-learn mailing list