Interactive PowerBasic Forum

IT-Consultant: Charles Pegge => OxygenBasic => Topic started by: Zlatko Vid on December 21, 2022, 08:21:02 AM

Title: Memory issue ?
Post by: Zlatko Vid on December 21, 2022, 08:21:02 AM
I get this memory error
anyone maybe have idea what might cause this mem leak
or block
Title: Re: Memory issue ?
Post by: Charles Pegge on December 21, 2022, 09:36:57 AM
Hi Aurel,

It seems your program is trying to access unallocated memory. It could be going outside the bounds of an array, or a string, where maybe an index is too large or negative.

Is this a fractal?
Title: Re: Memory issue ?
Post by: Zlatko Vid on December 21, 2022, 11:30:37 AM
Yes it is aa fractal ..well known as Pythagora Tree
i try to made in my interpreter ...
it working as you may see from image
but on the end i get this ugly error ...

i think that you have right ...
it looks that my array index is to small or as you say negative ...
also Charles ... i try to compile my interpreter in SC 0.40 version and get whole bunch of strange
errors ...is that something connected with RTL32.inc

which is latest version on o2
Title: Re: Memory issue ?
Post by: Charles Pegge on December 21, 2022, 11:37:33 AM

https://github.com/Charles-Pegge/OxygenBasic/blob/master/OxygenBasic050P14.zip
Title: Re: Memory issue ?
Post by: Zlatko Vid on December 21, 2022, 11:44:35 AM
Thanks Charles on a link
i will try to compile it in latest ver
yes ..you have a right ...index become negative
      well i must probably prevent this ..but program jumping all arround arrays

thanks again  :)

and all best for Holidays!
Aurel