[Vm-dev] SerialPort

Vaidotas Didžbalis vaidasd at gmail.com
Tue Oct 4 12:23:34 UTC 2011


Hello,
When using latest COG VM on XP Squeak 4.2 cannot use SerialPort. Same image
on Interpreter VM does fine. Is this is the same on other platforms?
thank you,

Vaidotas


Error: primWritePortByName:from:startingAt:count: failed
4 October 2011 3:17:37.742 pm

VM: Win32 - Smalltalk
Image: Squeak4.2 [latest update: #10966]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir C:\AK\test\testprinting\content
Trusted Dir C:\AK\test\testprinting\content\Vaidas
Untrusted Dir C:\Documents and Settings\Vaidas\My Documents\My Squeak

SerialPort(Object)>>error:
Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
 Arguments and temporary variables:
aString: 'primWritePortByName:from:startingAt:count: failed'
 Receiver's instance variables:
port: 'com11'
 baudRate: 19200
stopBitsType: 1
 parityType: 0
dataBits: 8
 outputFlowControlType: 0
inputFlowControlType: 0
 xOnByte: 19
xOffByte: 24

SerialPort(Object)>>primitiveFailed:
Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
 Arguments and temporary variables:
selector: #primWritePortByName:from:startingAt:count:
 Receiver's instance variables:
port: 'com11'
 baudRate: 19200
stopBitsType: 1
 parityType: 0
dataBits: 8
 outputFlowControlType: 0
inputFlowControlType: 0
 xOnByte: 19
xOffByte: 24

SerialPort(Object)>>primitiveFailed
Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
 Arguments and temporary variables:

Receiver's instance variables:
 port: 'com11'
baudRate: 19200
 stopBitsType: 1
parityType: 0
 dataBits: 8
outputFlowControlType: 0
 inputFlowControlType: 0
xOnByte: 19
 xOffByte: 24

SerialPort>>primWritePortByName:from:startingAt:count:
 Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
Arguments and temporary variables:
 portName: 'com11'
byteArray: '
'
startIndex: 1
count: 1
 Receiver's instance variables:
port: 'com11'
 baudRate: 19200
stopBitsType: 1
 parityType: 0
dataBits: 8
 outputFlowControlType: 0
inputFlowControlType: 0
 xOnByte: 19
xOffByte: 24

SerialPort>>nextPutAll:
Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
Arguments and temporary variables:
 aStringOrByteArray: '
'
Receiver's instance variables:
 port: 'com11'
baudRate: 19200
 stopBitsType: 1
parityType: 0
 dataBits: 8
outputFlowControlType: 0
 inputFlowControlType: 0
xOnByte: 19
 xOffByte: 24
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20111004/0098ee19/attachment.htm


More information about the Vm-dev mailing list