[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Changing GUI inside OSCFunc



On 28-11-2015 10:46, omereilam wrote:

>
> ...and I get the following error:
>
> ERROR: Qt: You can not use this Qt functionality in the current
thread. Try
> scheduling on AppClock instead.

The message sums it up. In practice these errors can be fixed by
wrapping the affected code in fork{ defer{ } }


> (
> OSCFunc.new({ |internalMsg|
> 	x = internalMsg[3]; y = internalMsg[4]; w.refresh;
> 	},
> 	'/reply'
> );
> )

to

> (
> OSCFunc.new({ |internalMsg|
> 	fork{ defer{ x = internalMsg[3]; y = internalMsg[4]; w.refresh; } }
> 	},
> 	'/reply'
> );
> )
>

Best,
Miguel

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/