Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Petra, AndrewAMD, Quad, VoroneTZ, 1 invisible), 488 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
MDL7 stack corruption #283863
08/10/09 13:04
08/10/09 13:04
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Hi. I trying to use the MDL7 library with VC++. I am using the one from the download page.

I think there is a bug when I create an MDL7R object on the stack; I get a stack corruption error when it goes out of scope. When I allocate the object on the heap, I get a heap corruption error.

I have compiled the Mdl7Dump app and the same thing happens. Everything works fine until it reaches the destructor.
Code:
{
MDL7R mdl

// do stuff, or not...

} // Out of scope, stack corruption!



Can you confirm whether this is a bug or not?

Re: MDL7 stack corruption [Re: sheefo] #283869
08/10/09 13:34
08/10/09 13:34
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
I found out why. I was using the libary in debug mode when it is a release library. When I compiled it in release mode it worked fine.

Is there a debug library anywhere?


Moderated by  old_bill, 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