3 registered members (MadJack, AndrewAMD, Quad),
540
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
[LBGUI] Memory not released!
#450990
04/26/15 15:40
04/26/15 15:40
|
Joined: May 2008
Posts: 2,113 NRW/Germany
alibaba
OP
Expert
|
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):
#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;
}
|
|
|
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
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
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.. Maybe you could reupload fixed version in original thread, so no one will need to fix this again?
|
|
|
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
OP
Expert
|
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! That sucks.. 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.
|
|
|
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
Member
|
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.
|
|
|
|