[IronPython] App stops responding, form won't refresh

robinsiebler robinsiebler at 321.net
Thu May 27 00:46:44 CEST 2010


I've looked at both of them before I posted this, but I'm just failing to
understand it I guess. 


Michael Foord-5 wrote:
> 
> On 26/05/2010 22:40, robinsiebler wrote:
>> This is my 1st IronPython/.NET app. It is really simple, all it does is
>> zip
>> all the files in a folder into an archive, 1 file per zip.
>>
>> The problem is that when it is zipping large files 200MB+ the app stops
>> responding. It is still zipping files, but the UI doesn't update. I don't
>> know how to fix this.
>>    
> 
> If you create a form and perform any activity on the same thread that 
> created the form then you will block until that activity is completed. 
> Instead you can create a background thread and post updates to the ui 
> from that thread by "invoking".
> 
> If you are using Windows Forms then you might find this example of 
> invoking onto the gui thread useful:
> 
> http://www.ironpython.info/index.php/Invoking_onto_the_GUI_%28Control%29_Thread
> 
> There is also an example of basic threading here:
> 
> http://www.voidspace.org.uk/ironpython/threading.shtml
> 
> All the best,
> 
> Michael Foord
> 
>> The project is here -
>> http://cid-0c375b07f1f323b6.skydrive.live.com/self.aspx/.Public/ZipfilesGUI.zip
>>
>> I think I need to add a thread to update the form, but all of my attempts
>> have failed. Any help in this regard would be greatly appreciated.
>>    
> 
> 
> -- 
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/blog
> 
> READ CAREFULLY. By accepting and reading this email you agree, on behalf
> of your employer, to release me from all obligations and waivers arising
> from any and all NON-NEGOTIATED agreements, licenses, terms-of-service,
> shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure,
> non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have
> entered into with your employer, its partners, licensors, agents and
> assigns, in perpetuity, without prejudice to my ongoing rights and
> privileges. You further represent that you have the authority to release
> me from any BOGUS AGREEMENTS on behalf of your employer.
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> 
> 

-- 
View this message in context: http://old.nabble.com/App-stops-responding%2C-form-won%27t-refresh-tp28685133p28687473.html
Sent from the IronPython mailing list archive at Nabble.com.




More information about the Ironpython-users mailing list