Hello,

After upgrading from A7 7.60 upwards, my DLL that loaded files using the add_buffer routine failed, resulting in an 'invalid pointer freed - ' message..

I believe it is due to the file format; I have narrowed it down slightly - add_buffer works great with bitmaps, but DDS and mdl files fail when loaded from a memory buffer. I have a demo that shows this - the only variable being the file type.

The files are fine, I have tried many variants, and the case is the same - dds and mdl fail to load from a memory buffer but bitmaps load fine.

With the help of Michael aka 'LazyDog' - the guy behind the Delphi SDK - we have isolated the error to post A7 7.60; all versions after so far fail. It may be a possible engine bug.

I have a minimal demo with about 8 lines of Lite-C code and the source of the DLL, written in minimal pascal here. Maybe others could run it and see if they get the error?

Files are attached.

-------Versions
A7 version 7.80 Commercial
SDK version 7.80 (tested with previous version, no change).
Windows XP SP2
7600GT NVIDIA Leadtek Graphics
4Gb ram
Australia

Acklog, etc. will be written by the demo atttached.

Cheers,
Adrian G

Attached Files

Visit our development blog: http://yellloh.com