Re: [Sdl4fp-users] runtime error on alloc to pSDL_RECT
Brought to you by:
trixx
From: Matthias <ma...@gm...> - 2006-05-01 12:56:13
|
Thanks. I think before I worked on errors (forgotten allocation or wrong array length and so on) at other location in the progam code. So this could truely be the explanation. Greets, Matthias ----- Original Message ----- From: "Daniel F Moisset" <dmo...@ar...> To: <sdl...@li...> Sent: Sunday, April 30, 2006 11:37 PM Subject: Re: [Sdl4fp-users] runtime error on alloc to pSDL_RECT > On Fri, 2006-04-28 at 22:34 +0200, Matthias wrote: >> Hi there. >> >> When trying to compile I got runtime error 216 at allocation of >> memory. While in debug mode I receive the messege you see in the >> picture. >> >> http://unterhaltung.freepage.de/tycoon/sam/sdlerr.GIF >> >> The curious thing is, this allocation didn't make any problems before. >> Any suggestions what is going wrong here? > > An usual cause of allocation failures is corrupt data structures in the > heap. Probably you are accessing a pointer after freeing it, or > accessing a dynamic array out of its bounds. > > These kind of errors disappear and reappear randomly, because they may > depend on previous contents of the memory. I can't be 100% sure, but I > bet your problem is this and not one related to the SDL library (anyway, > you are just using a record allocation there, not a library function). > > Regards, > Daniel > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Sdl4fp-users mailing list > Sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdl4fp-users > |