[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Changing GUI inside OSCFunc
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] Changing GUI inside OSCFunc
- From: Miguel Negrão <miguel.negrao-lists@xxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Nov 2015 18:54:36 +0000
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dkim-shared; d=friendlyvirus.org; h=Received:Received:X-Originating-IP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=lxxDxifYqtozBTHpKG54kwqnLojBgNlzhEkS+xWRC/82fhIKQ2S5igc9Pc5N9Y Fy62+HaQ8u/P7e/ILeJmW7vZU7L+bbHslhuE1XXuFgU8Ki9Wek3bJuPbMzbw6+U9 CCye3OFq4GonlAB2Ls1T8iIzx5eNImVygBG2rnpbuaZWo=;
- In-reply-to: <1448707609317-7621864.post@n2.nabble.com>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <1448707609317-7621864.post@n2.nabble.com>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0
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/