Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : picovga    if load few image from sdcard run out of memory

Posted: 09:45am
31 Jan 2026
Copy link to clipboard
tenij000
Regular Member

picovga    if load few image from sdcard run out of memory


is there  a way free up the memory again after you done whit the picture
 
Posted: 10:15am
31 Jan 2026
Copy link to clipboard
matherp
Guru

I appreciate this is second language for you, but you need to give us more information in order to help. Do the following. Load image then include MEMORY command. This will show the memory used. Then load another image and run MEMORY. You shouldn't see the memory usage increasing unless there is a memory leak that needs fixing. I don't see any sign of a memory leak in my testing so it may be something your program is doing. If you do see memeory increasing please post the images that cause the problem as it may be something to do with the specific encoding used.
 
Posted: 01:54pm
31 Jan 2026
Copy link to clipboard
JohnS
Guru

Probably a good idea to post a small program to show the problem.

And ZIP with images if not too big for the forum.

John
 
Posted: 12:49pm
02 Feb 2026
Copy link to clipboard
JulesO
Newbie

  tenij000 said  picovga    if load few image from sdcard run out of memory is there  a way free up the memory again after you done whit the picture


It's weird i'm working on a small game that uses lot of .bmp (that I've not optimized at all) and I dont meet that problem.

How do you use images inside the code ?
 
Posted: 02:31pm
02 Feb 2026
Copy link to clipboard
Volhout
Guru

Hi JulesO,

Below work is not mine, I just share it here since it gives an idea how you can work with pictures in a program. It is a start of a graphics adventure. Unzip it and run cca5.bas on a picomiteVGA.

cca.zip

The essence of showing pictures is in "ccapictures.bas".

Volhout
P.S. this work is from Martin.H here at this forum. If you are impressed, send him the compliments.
P.P.S. in picomite 6.02.00 you can also use JPG images.
Edited 2026-02-03 00:39 by Volhout
 
Posted: 07:27pm
02 Feb 2026
Copy link to clipboard
JulesO
Newbie

  Volhout said  Hi JulesO,

Below work is not mine, I just share it here since it gives an idea how you can work with pictures in a program. It is a start of a graphics adventure. Unzip it and run cca5.bas on a picomiteVGA.

cca.zip

The essence of showing pictures is in "ccapictures.bas".

Volhout
P.S. this work is from Martin.H here at this forum. If you are impressed, send him the compliments.
P.P.S. in picomite 6.02.00 you can also use JPG images.


Hi Volhout,

Thanks, it really is impressive indeed, i "almost" understand it but it actually goes beyond what I need for my small project.

I kind of "reinvent" the wheel (with chatgpt) so I "have" a function to "list" rooms and display text + bmp + events happening in the room BUT with spaghetti code (but for 9 rooms < 350 lines of codes)

I’ll share what will be more of a quick 'demo' of the idea I had in mind very soon!
Edited 2026-02-03 05:32 by JulesO
 
Posted: 12:48pm
03 Feb 2026
Copy link to clipboard
Martin H.
Guru


  tenij000 said  picovga    if load few image from sdcard run out of memory
is there  a way free up the memory again after you done whit the picture

@tenij000
First of all, you should add a sample file or provide the details:
height, width,
how it was saved (4, 8, 24 bits), with or without RLL compression?

All of this would make it much quicker to provide helpful answers; as it is, we are all just groping in the dark.
Cheers
Martin
Edited 2026-02-03 22:50 by Martin H.
 


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026