Real Software Forums
http://forums.realsoftware.com/

While and For loops randomly hang on Linux
http://forums.realsoftware.com/viewtopic.php?f=8&t=45004
Page 1 of 1

Author:  Beowulf [ Thu Aug 16, 2012 9:51 am ]
Post subject:  While and For loops randomly hang on Linux

Hi,

I try to run a Desktop application on a Linux desktop usgin remote debugger for testing.
It randomly hangs on While and For loops. It does not loop, it hangs on the statement itself.
Even a simple loop line this, hangs
For i as int32 = 0 to combobox1.listcount-1
msgbox combobox1.rowtag(i)
Next


On Mac and Windows it works perfectly. I use REALStudio 2011r43.

Anyone having the same problem of have a solution to this?

Author:  Paul Lefebvre [ Wed Aug 22, 2012 7:32 pm ]
Post subject:  Re: While and For loops randomly hang on Linux

What do you mean by hangs? Are you clicking the message box that displays on the Linux desktop?

Author:  Beowulf [ Thu Aug 23, 2012 5:40 am ]
Post subject:  Re: While and For loops randomly hang on Linux

The msgbox is an example. The code hangs on the for statement itself. It doesn't run the code inside the loop.

Author:  Paul Lefebvre [ Mon Aug 27, 2012 2:27 pm ]
Post subject:  Re: While and For loops randomly hang on Linux

I have never seen hanging behavior like this when remote debugging to Linux.

Does it do it if you run the IDE on Linux and debug there?

What version of Linux are you using?

Author:  Beowulf [ Tue Aug 28, 2012 2:01 am ]
Post subject:  Re: While and For loops randomly hang on Linux

I'm running a remote debug from Windows 7 (32-bit) on a CentOS 5.6 (32-bit) and the application built on Windows 7 and ran on a Ubuntu (any version) does the same.
A piece of code it hangs on:

for i=0 to (ipfield.listcount-1)  '' Here it hangs, it does not continue through the loop itself.
if ipfield.text = trim(ipfield.list(i)) then
functions.ip = ipfield.RowTag(i)
end
next

Sometimes it does continue and it hangs on another loop like
while not askdraad.done   '' Here it hangs, it does not continue through the loop itself.
diff=Microseconds-start

if diff > 500000 and diff < 1000000 then
'if not busywindow.geopend then
'busywindow.Show
'end
app.DoEvents 50
Elseif diff >=1000000 then
app.DoEvents 100
else
app.DoEvents 150
end
if askdraad.timedout then
exit
end
wend

Author:  Paul Lefebvre [ Tue Aug 28, 2012 8:53 am ]
Post subject:  Re: While and For loops randomly hang on Linux

At this point, I have no idea. Please create a Feedback case with an example project so that we can look into it.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/