Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Error C stacked OVerflow

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Thu Dec 19, 2013 8:59 am    Post subject: Error C stacked OVerflow Reply with quote

Hello Smile
i have made a clock thingy using simple command n a timer but after some time of it bein enabled it starts showing my Error C : Stacked Overflow , i have figured out its because infinite looping any idea how to fix that ?
Code:
TimeStamp = createLabel(z)
TimeStamp.caption = [[Welcome...]]
TimeStamp.left =30
TimeStamp.top = 1
TimeStamp.width = 85
TimeStamp.height = 16

function TimeStampfun ()
progname = "Cloud Program "
control_setCaption(TimeStamp,(os.date("Clock:%I:%M:%S %p %a %b %d, %Y")))
end


TSvalidater=createTimer(nil)
timer_onTimer(TSvalidater, TimeStampfun)
timer_setInterval(TSvalidater, 1000) --1 second
timer_setEnabled(TSvalidater, true);
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Dec 19, 2013 4:44 pm    Post subject: Reply with quote

Looks good.
First line. What is z ? Form? Other object?

Are you using CE6.2 or CE6.3 ?

_________________
Back to top
View user's profile Send private message MSN Messenger
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Thu Dec 19, 2013 4:54 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
Looks good.
First line. What is z ? Form? Other object?

Are you using CE6.2 or CE6.3 ?


yes Z is my form name and using 6.3 but using that script it pops up a lua engine with Error C : Stacked Overflow messages popping up every 1 second
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Dec 19, 2013 5:04 pm    Post subject: Reply with quote

Well, I just launched CE, I created new form named UDF1, I pasted your code, changed fist line, from z to UDF1, I clicked execute... and it works.
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites