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.
I get "PIE.BMP: can't open file" as an error message. Is that what you meant? cause in your post you said something about an "invalid pointer" being freed. Using Version 7.82.2, also with Windows, but SP3.
~"I never let school interfere with my education"~ -Mark Twain
Re: Possible bug in add_buffer with file types
[Re: Germanunkol]
#310554 02/15/1013:3602/15/1013:36