We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › can I interrupt loadstrings()
Page Index Toggle Pages: 1
can I interrupt loadstrings() ? (Read 461 times)
can I interrupt loadstrings() ?
Feb 5th, 2009, 6:54pm
 
I there, i'm trying to collect content from URLs to do some nice drawings. I used "batches" of threads to get content (say for instance 10 per 10), but having a long list off URL to collect the info from, i get stuck waiting for slow URL to "loadstrings"... is there a way to "interrupt" that ??

I tried "nameofthethread.interrupt()"... it changed the thread flag but did not "stopped it". I fall into "memory overstuff" situations.

How should I handle this :
- create "sliding thread batch" (I only push my problem to the end of the process) ?
- get into java io ???

anyone ???

e.
Re: can I interrupt loadstrings() ?
Reply #1 - Feb 7th, 2009, 8:10am
 
Forgive me if I do not fully understand what you need but could this help?

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_libraries_tools;action=display;num=1227644714

I am not trying to toot my own horn (I was looking for suggestions myself :/ )
Page Index Toggle Pages: 1