| View previous topic :: View next topic |
| Author |
Message |
abhijeet1001 Advanced Cheater
Reputation: 0
Joined: 10 Apr 2013 Posts: 87
|
Posted: Thu Dec 19, 2013 8:59 am Post subject: Error C stacked OVerflow |
|
|
Hello
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Dec 19, 2013 4:44 pm Post subject: |
|
|
Looks good.
First line. What is z ? Form? Other object?
Are you using CE6.2 or CE6.3 ?
_________________
|
|
| Back to top |
|
 |
abhijeet1001 Advanced Cheater
Reputation: 0
Joined: 10 Apr 2013 Posts: 87
|
Posted: Thu Dec 19, 2013 4:54 pm Post subject: |
|
|
| 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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Dec 19, 2013 5:04 pm Post subject: |
|
|
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 |
|
 |
|