Page 1 of 1

Struck with "Invadid memory access"

Posted: Wed Jan 28, 2009 9:28 am
by buzzqw
hi all

i have some problem with "invalid memory access"

with previus version of pb 4.30 beta i don't have this error

but with official 4.30 (win 32bit) i am stuck :(

i don't ask to debug the ugly spaghetti code, it's my first program, started over two years ago.., now i code better :p

please download the source package
http://www.64k.it/andres/data/a/automkv_debug.zip

load automkv.pb
active the debugger
compile it

click OK on Tips message

click "!!!" button at right side of "Audio Track 1" frame gadget, just at right of audio codec list
Image

if you think that errors is due to ugly code, well.. it's probably, but any further help is apprecited

BHH

P.S. don't try to encode/open files, the package linked it's a very trimmed one's

Posted: Wed Jan 28, 2009 10:16 am
by ts-soft
I can't test your program but i think if you put a:

Code: Select all

CloseWindow(#window0)
at the end of code the ima i gone :wink:

Posted: Wed Jan 28, 2009 10:23 am
by buzzqw
sorry ts-soft but i don't understud your suggestion

why i should close my main window ?

BHH

Posted: Wed Jan 28, 2009 4:21 pm
by freak
In 'automkv_Common.pb', Line 1374 you have a 'CloseGadgetList()' which does not belong there.
You are closing the gadgetlist of the PanelGadget, but then you add more gadgets to it right after.

Since 4.30, you can only call AddGadgetItem() on a PanelGadget if its gadgetlist is open. Previous versions were more relaxed on this issue.
I will try to add a debugger message to easier spot this kind of error.

Posted: Wed Jan 28, 2009 5:04 pm
by buzzqw
GREAT!!!!!!!!!!!!!!!!

THANKS A LOT freak!

BHH