New topic: 

Try again

<http://forums.realsoftware.com/viewtopic.php?t=46916>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        MaxMBJ          Post subject: Try againPosted: Mon Feb 11, 2013 
7:59 pm                         
Joined: Thu Feb 03, 2011 11:47 am
Posts: 106                Sorry for the new thread but I think I spoiled my 
last one by talking to myself.

Anyway, I am mystified and stymified, puzzled and muzzled, perplexed and 
flummoxed by the following problem.

PROBLEM:  Clicking mouse while running a long loop of any kind eventually 
crashes program.

I created a new project which consisted of nothing more than a window and a 
pushbutton.  In the pushbutton I included the following code:

dim t1 as integer

t1 = ticks
do
loop until ticks - t1 > 100000


I run it then click the mouse repeatedly until ... CRASH!  Happens every time.

I'm guessing there's a way to clear the queue of clicks somewhere but I can't 
find it.  Any help would be much appreciated.   
                             Top                mauitom          Post subject: 
Re: Try againPosted: Mon Feb 11, 2013 10:52 pm                                 
Joined: Thu Feb 16, 2006 10:04 pm
Posts: 257                1) You need to give your thread post a descriptive 
title or you will most likely continue to have a conversation by yourself. 

2) I doubt you are able to click continuously with the code you posted because 
you have tied up the main thread in a continuos loop. The main UI will not 
respond after clicking the button. I get no crash here.

3) As far as why, add a listbox and run this code.
Dim t1 as integer
t1 = ticks
For i As Integer = 0 To 10
  Self.Listbox1.AddRow Str(ticks - t1)
Next


4) If you do have a simple project that does show a crash - report it.      
_________________
Thomas C.
Real Studio Blog
http://bigdaddysurf.com/blog/

http://itunes.apple.com/us/app/mrp-2012/id496160762?ls=1&mt=8
https://itunes.apple.com/us/book/how-to-waterstart/id576214730?mt=11  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to