Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 900 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Possible bug in add_buffer with file types #310546
02/15/10 12:29
02/15/10 12:29
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
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
Re: Possible bug in add_buffer with file types [Re: adoado] #310553
02/15/10 13:32
02/15/10 13:32
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
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/10 13:36
02/15/10 13:36
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
I compiled this and tested on Windows 7, works fine (I see a pie image)...


Visit our development blog: http://yellloh.com
Re: Possible bug in add_buffer with file types [Re: adoado] #310557
02/15/10 14:44
02/15/10 14:44
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
for JCL....

the actual error occurs on ent_create after add_buffer is used.
a bitmap loads fine without error; however, a .dds displays the error but does load.

the error is the new E1516 added with 7.66.

the file does load fine but only after the W1516 error is displayed. please note it is "W"1516 not "E"1516 also.


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: Possible bug in add_buffer with file types [Re: LazyDog] #310691
02/16/10 15:21
02/16/10 15:21
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks for the example! This was indeed a bug: the 1516 error was a false alarm. This will be fixed in the next update.

Re: Possible bug in add_buffer with file types [Re: jcl] #310756
02/16/10 20:03
02/16/10 20:03
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Awesome, thanks a bunch jcl wink


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

Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1