Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:11 19 Feb 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

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

Author Message
tenij000
Regular Member

Joined: 30/05/2025
Location: Netherlands
Posts: 72
Posted: 09:45am 31 Jan 2026
Copy link to clipboard 
Print this post

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
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10965
Posted: 10:15am 31 Jan 2026
Copy link to clipboard 
Print this post

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.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4244
Posted: 01:54pm 31 Jan 2026
Copy link to clipboard 
Print this post

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
 
JulesO
Newbie

Joined: 08/09/2025
Location: France
Posts: 19
Posted: 12:49pm 02 Feb 2026
Copy link to clipboard 
Print this post

  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 ?
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5703
Posted: 02:31pm 02 Feb 2026
Copy link to clipboard 
Print this post

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
PicomiteVGA PETSCII ROBOTS
 
JulesO
Newbie

Joined: 08/09/2025
Location: France
Posts: 19
Posted: 07:27pm 02 Feb 2026
Copy link to clipboard 
Print this post

  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
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1357
Posted: 12:48pm 03 Feb 2026
Copy link to clipboard 
Print this post

  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.
'no comment
 
Print this page


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