Hi all, I have a problem again :)

Previously John helped me find out what was wrong - the secondary thread  
wanted to access the GUI, which is forbidden under GTK. So I've rewritten  
my application, now it works on both OS, just I have a problem again.  
Exactly two.
1. The application is _very_ slow now
2. In this way, the program isn't punctual

This application uses luasocket, and reads the data from there, then it  
parses it, and adds some data to a ListCtrl. But. If I except (and get)  
500 lines on the socket, just about 200 appears in the list. I tried both  
wx.wxPostEvent() and MyApp:AddPendingEvent(), the result is the same. I  
made some debugs too, and I saw the data on the socket, but not on the  
connected function...

So, I've decided to check wxWidgets manual, maybe it has some tricks to  
fix this problem. I find a 'function(?)', called wxMutexGuiEnter() and  
wxMutexGuiLeave(), which provides the possibility to modify the GUI from  
the secondary threads. The only problem that wxLUA doesn't wrap wxThread.

My question(s):
- Will be that wrapped in the closer-future?
- Is there any other way to reach the GUI w/o any data get lost and the  
GUI itself freeze?

Thanks for the replyes:
Attila Pázmándi

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to