|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Mac to Linux class question
by Travis Weller-2
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Hello, I am moving a number of SC classes I've written over to a Linux machine from MacOS where they were developed. After running a few tests, I've been getting errors from seemingly simple calls that work fine on Mac. I was wondering if anyone could shed some light on the apparent differences between the two platforms (I am new to SC Linux).
For instance, a line of code in one of my classes: window = SCWindow(instanceName, Rect(windowHoriz, windowVert, 500 , 45)); Generates the following error on Linux, but not on Mac:
ERROR: Message 'new' not understood. RECEIVER: nil ARGS: Symbol 'simple' Instance of Rect { (B77B43C0, gc=48, fmt=00, flg=00, set=02)
instance variables [4] left : Integer 735 top : Integer 700 width : Integer 500 height : Integer 45 } CALL STACK: DoesNotUnderstandError:reportError B7934D80
arg this = <instance of DoesNotUnderstandError> Nil:handleError B7934A80
arg this = nil arg error = <instance of DoesNotUnderstandError> Thread:handleError B7936280
arg this = <instance of Thread> arg error = <instance of DoesNotUnderstandError>
Object:throw B79374E0 arg this = <instance of DoesNotUnderstandError>
Object:doesNotUnderstand B7937D80 arg this = nil arg selector = 'new'
arg args = [*2] SimpleBuffer:init B795B190 arg this = <instance of SimpleBuffer>
arg instanceArgName = 'simple' arg instanceArgidNum = 11 arg windowVert = 700
arg windowHoriz = 735 arg arg_inputNum = 1 arg arg_server = <instance of Server>
< closed FunctionDef > (no arguments or variables) Server:waitForBoot B7937420
arg this = <instance of Server> arg onComplete = <instance of Function>
arg limit = 100 Interpreter:interpretPrintCmdLine B67F2770 arg this = <instance of Interpreter>
var res = nil var func = <instance of Function> var code = "(
s = Server.local; s.optio..." Process:interpretPrintCmdLine B79365E0 arg this = <instance of Main>
--- Thanks, Travis
|
|
|
Re: Mac to Linux class question
by James Harkins-2
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Read the GUI helpfile. Have you installed SwingOSC?
hjh On Tue, Nov 11, 2008 at 2:09 PM, Travis Weller <tcweller@...> wrote: > Hello, > I am moving a number of SC classes I've written over to a Linux machine from > MacOS where they were developed. After running a few tests, I've been > getting errors from seemingly simple calls that work fine on Mac. I was > wondering if anyone could shed some light on the apparent differences > between the two platforms (I am new to SC Linux). > For instance, a line of code in one of my classes: > window = SCWindow(instanceName, Rect(windowHoriz, windowVert, 500 , 45)); > Generates the following error on Linux, but not on Mac: > ERROR: Message 'new' not understood. > RECEIVER: > nil > ARGS: > Symbol 'simple' > Instance of Rect { (B77B43C0, gc=48, fmt=00, flg=00, set=02) > instance variables [4] > left : Integer 735 > top : Integer 700 > width : Integer 500 > height : Integer 45 > } > CALL STACK: > DoesNotUnderstandError:reportError B7934D80 > arg this = <instance of DoesNotUnderstandError> > Nil:handleError B7934A80 > arg this = nil > arg error = <instance of DoesNotUnderstandError> > Thread:handleError B7936280 > arg this = <instance of Thread> > arg error = <instance of DoesNotUnderstandError> > Object:throw B79374E0 > arg this = <instance of DoesNotUnderstandError> > Object:doesNotUnderstand B7937D80 > arg this = nil > arg selector = 'new' > arg args = [*2] > SimpleBuffer:init B795B190 > arg this = <instance of SimpleBuffer> > arg instanceArgName = 'simple' > arg instanceArgidNum = 11 > arg windowVert = 700 > arg windowHoriz = 735 > arg arg_inputNum = 1 > arg arg_server = <instance of Server> > < closed FunctionDef > (no arguments or variables) > Server:waitForBoot B7937420 > arg this = <instance of Server> > arg onComplete = <instance of Function> > arg limit = 100 > Interpreter:interpretPrintCmdLine B67F2770 > arg this = <instance of Interpreter> > var res = nil > var func = <instance of Function> > var code = "( > s = Server.local; > s.optio..." > Process:interpretPrintCmdLine B79365E0 > arg this = <instance of Main> > > --- > Thanks, > Travis -- James Harkins /// dewdrop world jamshark70@... http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman _______________________________________________ sc-users mailing list info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
| Free Forum Powered by Nabble | Forum Help |