April 23, 2024, 08:09:54 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


stoptimer cause crash

Started by ExMember001, August 02, 2008, 02:07:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ExMember001

August 02, 2008, 02:07:24 PM Last Edit: August 02, 2008, 02:11:21 PM by KrYpT
hi,
i'm playing with the eblinux at the moment on Ubuntu 8.04, i'm trying to convert my I ching program.
it works great so far except for the stoptimer command...
if the timer is already stopped and  stoptimer is call the program close or work a few times then crash (program doesnt respond)

here's what i have done so far:
Part of it is still in french ... sorry about that ;)
stoptimer at line 50 cause the problem

Ionic Wind Support Team

Krypt,
I will look.  The stoptimer command is working fine, I get a random segmentation fault after pressing the button a few times. 

Hands down that is the most RECT statements I have ever seen in a single program ;)
Ionic Wind Support Team

Ionic Wind Support Team

OK here is a quick fix for you

Put this declare at the top of your source:

declare cdecl extern g_object_set_data(object as pointer,key as string,dat as uint)

and after the stoptimer statement:


                    int tour

                    symbol = ""

                    stoptimer win

                    g_object_set_data(win.hwnd,"TIMER1",NULL) : ' Add this line


Paul.
Ionic Wind Support Team

ExMember001

Quote from: Paul Turley on August 02, 2008, 03:43:24 PM
Hands down that is the most RECT statements I have ever seen in a single program ;)

hehe :D it was easier to copy/paste than to think about a way to compress it :)

thanks for the fix!!

Ionic Wind Support Team

You are welcome.  I'll have the permanent fix in the next update, which will be soon.

Paul.
Ionic Wind Support Team