Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Nov 22, 2017 8:02 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Threads not working on Linux problem
PostPosted: Fri Sep 30, 2005 1:33 pm 
Offline

Joined: Fri Sep 30, 2005 1:24 pm
Posts: 119
I notice that when sending certain shell commands within a thread, RBLinux
does not allow time for the shell.result event to return data. This works fine on OSX-each time the shell command sends back a "result" it is displayed in a static text box. On Linux the whole app seems to pause, then after the command has finished, all the "results" are returned in one lump.
This cannot be right.
I really need to find a way round this.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 30, 2005 2:32 pm 
Offline
Real Software Engineer

Joined: Fri Sep 30, 2005 8:28 am
Posts: 242
Location: Unfortunately not Canada
Have you tried asynchronous mode? You don't need a thread in this case, unless you're in some kind of tight loop, but you could also call App.DoEvents in that case.


Top
 Profile  
Reply with quote  
 Post subject: re:Threads not working on Linux problem
PostPosted: Fri Sep 30, 2005 4:44 pm 
Offline

Joined: Fri Sep 30, 2005 1:24 pm
Posts: 119
Interesting...
Is Async mode supported on Linux and Windows now?
I'm using 5.55 which says"Asynchronous and interactive modes are only supported on OSX"


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 30, 2005 7:44 pm 
Offline
Real Software Engineer

Joined: Fri Sep 30, 2005 8:28 am
Posts: 242
Location: Unfortunately not Canada
Yes, asynchronous and interactive shells are supported on Linux/Windows in 5.5.5.


Top
 Profile  
Reply with quote  
 Post subject: re:Threads not working on Linux problem
PostPosted: Sat Oct 01, 2005 6:21 am 
Offline

Joined: Fri Sep 30, 2005 1:24 pm
Posts: 119
The mode 2 shell code in the language ref guide does not work in Linux. OSX is fine.
Mode 2 is just not happening on Linux at all.
Using timers, threads, doEvents are all of no help. Sometimes the shell
won't except commands, sometimes it is running, sometimes not.
The only thing that sometimes works is if I get the dataAvailable event to display the message box. This at least indicates the shell ran, and a command got through. I'm only testing with simple stuff like "ls" "pwd" etc.
There are so many problems I don't think it is worth using. This is a shame
as Mode 2 is the best way to work with shells. Mode 0 and 1 are not too useful. In fact, I've never seen mode 1 used - it appears to do nothing on my osx machine nor on Linux.
All my test code(mode 0 and mode 2) and experiments work perfectly on OSX.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Oct 03, 2005 4:57 pm 
Offline
Real Software Engineer

Joined: Fri Sep 30, 2005 8:28 am
Posts: 242
Location: Unfortunately not Canada
Mode 2, or 1, works ok for me, but perhaps your expectations differ from mine, or perhaps there really is a bug in our Shell class but I don't see it on my Mandrake 9.1. You should submit a bug report with a sample project, and describe what you see, along with what distro you're running on, thanks.


Top
 Profile  
Reply with quote  
 Post subject: re:Threads/shell not working on Linux problem
PostPosted: Tue Oct 04, 2005 2:23 pm 
Offline

Joined: Fri Sep 30, 2005 1:24 pm
Posts: 119
Tried a different Linux distro, and RB apps won't even run in any shape or form. I'll certainly file a bug report ...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group