OpenGL 3.2 in Delphi 2009 using FastMM 4.97 problem with UBOs in FullDebugMode -


i'm sitting opengl 3.2 application in delphi 2009. when using fastmm 4.97 fulldebugmode defined ubos not data properly. fulldebugmode undefined works charm.

example: setting viewport dimensions pointing 2 private integer fields, fwidth , fheight, in our render frame class.

glbuffersubdata(gl_uniform_buffer, vuniform.offset, vuniform.size, @fwidth); 

i've been pulling hair on issue few days , don't know how proceed. i'm not expecting full opengl support here can come suggestion based on known differences between running in fulldebugmode , not.

project settings:

[compiling] optimization    false stack frames    true use debug .dcus true [linking] debug info      true map file        detailed 

os windows 7 64 bit.

edit: found it! had nothing @ opengl. elsewhere in our codebase function returned pansichar using result := @ansistring(object.name)[1]; worked of time running since memory released unchanged. in fulldebugmode data overwritten $80 sequence when freed.

you looking @ memory has been freed prematurely (by own application).

normally, you'd still able access old values until overwritten new allocation + writes. allow application run properly, though accessing stale (freed) parts of memory.

however, in fulldebugmode, deallocated memory filled byte $80 sequence. can check if know exact call glbuffersubdata breaks, take @ memory @ point.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -