View previous topic :: View next topic |
Author |
Message |
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Tue Oct 12, 2021 6:22 am Post subject: [Lua Form]Custom trainer c stack overflow[solved] |
|
|
I'm making custom trainer for game,when form called too many times, c stack overflow occurs and don't allow to create form again,am i doing something wrong?
I've made: Code: | local edit = {}
local checkbox = {}
local button = {}
local label = {}
local comboBox = {} |
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Last edited by Frouk on Tue Oct 12, 2021 9:32 am; edited 1 time in total |
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Tue Oct 12, 2021 7:09 am Post subject: |
|
|
Check the form isn't created first before creating a new one.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Tue Oct 12, 2021 8:26 am Post subject: |
|
|
likely an event is triggering another event which in turn triggers the original again
common causes: onshow and onresize
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Tue Oct 12, 2021 8:45 am Post subject: |
|
|
LeFiXER wrote: | Check the form isn't created first before creating a new one. |
Like the method with Code: | if form then form.destroy() end | ?
Form is creating firstly
Dark Byte wrote: | likely an event is triggering another event which in turn triggers the original again
common causes: onshow and onresize |
I don't have any with common causes
I can post table where you can see whats wrong
Timer included in script
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Tue Oct 12, 2021 9:14 am Post subject: |
|
|
instead of
Code: |
if form then form.destroy() end
|
do
Code: |
if form then form.destroy() form=nil end
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Tue Oct 12, 2021 9:19 am Post subject: |
|
|
What DB said XD.
|
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Tue Oct 12, 2021 9:31 am Post subject: |
|
|
thx DB
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
|