Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
Deeplearning Script
by wolfi. 02/26/24 12:46
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/22/24 16:22
AssetAdd() vs. modern asset list?
by jcl. 02/21/24 15:01
How many still using A8
by Aku_Aku. 02/20/24 12:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, TedMar), 519 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[LBGUI] Memory not released! #450990
04/26/15 15:40
04/26/15 15:40
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Some elements seem not to get released when deleted. I canīt find the leak. Any ideas?

Here is a test script (open it in the lbgui directory):

Code:
#include <acknex.h>
#include <default.c>
#include "lbgui.h"

BMAP* editbox_left_tga = "editbox_left.tga";
BMAP* editbox_middle_tga = "editbox_middle.tga";
BMAP* editbox_right_tga = "editbox_right.tga";

void create()
{
	LBG_create_editbox (0, 64, 320, 256, 16, 4, "Editbox", LBG_ebmaps(editbox_left_tga,editbox_middle_tga,editbox_right_tga), EF_SHOW);
	LBG_create_editbox (0, 64, 320, 256, 16, 4, "Editbox", LBG_ebmaps(editbox_left_tga,editbox_middle_tga,editbox_right_tga), EF_SHOW);
	LBG_create_editbox (0, 64, 320, 256, 16, 4, "Editbox", LBG_ebmaps(editbox_left_tga,editbox_middle_tga,editbox_right_tga), EF_SHOW);
	LBG_create_editbox (0, 64, 320, 256, 16, 4, "Editbox", LBG_ebmaps(editbox_left_tga,editbox_middle_tga,editbox_right_tga), EF_SHOW);
	LBG_create_editbox (0, 64, 320, 256, 16, 4, "Editbox", LBG_ebmaps(editbox_left_tga,editbox_middle_tga,editbox_right_tga), EF_SHOW);
	LBG_create_editbox (0, 64, 320, 256, 16, 4, "Editbox", LBG_ebmaps(editbox_left_tga,editbox_middle_tga,editbox_right_tga), EF_SHOW);
	LBG_create_editbox (0, 64, 320, 256, 16, 4, "Editbox", LBG_ebmaps(editbox_left_tga,editbox_middle_tga,editbox_right_tga), EF_SHOW);
}
void release()
{
	LBG_EDITBOX* ebx = LBG_EDITBOX_FIRST;

	while(ebx)
	{
		ebx = LBG_destroy_editbox(ebx);
	}
}
void main()
{
	wait(1);
	LBGUI_open(); // Open the GUI
	on_exit = LBGUI_close; // Close it when the application is terminated
	LBG_flags |= LBGUI_PROTECTMOUSE; // This prevents windows to be moves outside the engine window
	on_k=create;
	on_l=release;
}



Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: [LBGUI] Memory not released! [Re: alibaba] #451322
05/02/15 14:16
05/02/15 14:16
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Anyone?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: [LBGUI] Memory not released! [Re: alibaba] #451325
05/02/15 14:35
05/02/15 14:35
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
whats being released, whats not?


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: [LBGUI] Memory not released! [Re: DLively] #451326
05/02/15 14:37
05/02/15 14:37
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Nevermind, after a week of fiddeling around I finally found the problem. He forgot to release bitmaps he created during runtime. In all of the elements. Had to go through thousands lines of code.. what a waste of time!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: [LBGUI] Memory not released! [Re: alibaba] #451327
05/02/15 14:41
05/02/15 14:41
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: alibaba
Nevermind, after a week of fiddeling around I finally found the problem. He forgot to release bitmaps he created during runtime. In all of the elements. Had to go through thousands lines of code.. what a waste of time!
That sucks.. frown Maybe you could reupload fixed version in original thread, so no one will need to fix this again?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: [LBGUI] Memory not released! [Re: 3run] #451339
05/02/15 19:48
05/02/15 19:48
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Originally Posted By: 3run
Originally Posted By: alibaba
Nevermind, after a week of fiddeling around I finally found the problem. He forgot to release bitmaps he created during runtime. In all of the elements. Had to go through thousands lines of code.. what a waste of time!
That sucks.. frown Maybe you could reupload fixed version in original thread, so no one will need to fix this again?


Yeah I will, just need to get rid of some small leaks. They are only seen when using LBGUI intensively.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: [LBGUI] Memory not released! [Re: alibaba] #451343
05/02/15 20:52
05/02/15 20:52
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Here is the fixed version without memory leaks:
http://skytitans.de/lbgui.h


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: [LBGUI] Memory not released! [Re: alibaba] #472780
05/22/18 19:58
05/22/18 19:58
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
do you still happen to have the fixed version of lbgui? laugh


POTATO-MAN saves the day! - Random
Re: [LBGUI] Memory not released! [Re: Kartoffel] #472781
05/22/18 20:40
05/22/18 20:40
Joined: Feb 2013
Posts: 122
Maysville, Ga
Evo Offline
Member
Evo  Offline
Member

Joined: Feb 2013
Posts: 122
Maysville, Ga
I would also like to have a fixed copy of lbgui if possible.

Alibaba : your private messages are full and I can't send a PM to you on the forum. I sent an email to you about a private beta project and help with beta testing. If you're interested, send me a reply by email. Thanks.

Last edited by EVO; 05/23/18 00:27.
Re: [LBGUI] Memory not released! [Re: Evo] #472783
05/23/18 00:11
05/23/18 00:11
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
I'll see if I can find it. I'm sure I have it somewhere on my old HDD.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Page 1 of 2 1 2

Moderated by  aztec, Blink, HeelX 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1