tifroz
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2017
09:36 PM
'receive' function not found on roStreamSocket object instance?
documented here.
Is it possible that the 'connection' object was at some point stripped of its receive() function? I guess in theory it would be possible if my code at some did something like 'connection.receive = Invalid' (it doesn't - I performed a search, 'receive' isn't referenced anywhere else in my code)[/font][/color]
roStreamSocket'.
[/font][/color]
Suspending threads...
Thread selected: 0* ...rce/channel/socketServer.brs(71) received = connection.receive(buffer, 0, 512)
Current Function:
063: end if
064:
065: ' Handle readable event
066: bufferedStr = ""
067: reachedEndOfMessage = false
068: while connection.isReadable()
069: buffer = CreateObject("roByteArray")
= 0
071:* received = connection.receive(buffer, 0, 512)
072:
073: if received = 0 ' client closed
074: closed = True
075: exit while
Member function not found in BrightScript Component or interface. (runtime error &hf4) in pkg:/source/channel/socketServer.brs(71)
071: received = connection.receive(buffer, 0, 512)
Backtrace:
#1 Function $anon_9(event As Dynamic) As Dynamic
file/line: pkg:/source/channel/socketServer.brs(71)
#0 Function main() As Void
file/line: pkg:/source/main.brs(55)
Local Variables:
event bsc:roSocketEvent refcnt=2
global Interface:ifGlobal
m roAssociativeArray refcnt=5 count:14
changedid Integer val:87031818 (&h530000A)
newconnection <uninitialized>
connection bsc:roStreamSocket refcnt=2
client Invalid
clientid Invalid
id <uninitialized>
closed Boolean val:false
bufferedstr String (VT_STR_CONST) val:""
reachedendofmessage Boolean val:false
buffer bsc:roByteArray refcnt=1
received <uninitialized>
dgram <uninitialized>
Threads:
ID Location Source Code
0* ...rce/channel/socketServer.brs(71) received = connection.receive(buffer, 0, 512)
*selected
Is it possible that the 'connection' object was at some point stripped of its receive() function? I guess in theory it would be possible if my code at some did something like 'connection.receive = Invalid' (it doesn't - I performed a search, 'receive' isn't referenced anywhere else in my code)[/font][/color]
roStreamSocket'.
[/font][/color]
Suspending threads...
Thread selected: 0* ...rce/channel/socketServer.brs(71) received = connection.receive(buffer, 0, 512)
Current Function:
063: end if
064:
065: ' Handle readable event
066: bufferedStr = ""
067: reachedEndOfMessage = false
068: while connection.isReadable()
069: buffer = CreateObject("roByteArray")
= 0
071:* received = connection.receive(buffer, 0, 512)
072:
073: if received = 0 ' client closed
074: closed = True
075: exit while
Member function not found in BrightScript Component or interface. (runtime error &hf4) in pkg:/source/channel/socketServer.brs(71)
071: received = connection.receive(buffer, 0, 512)
Backtrace:
#1 Function $anon_9(event As Dynamic) As Dynamic
file/line: pkg:/source/channel/socketServer.brs(71)
#0 Function main() As Void
file/line: pkg:/source/main.brs(55)
Local Variables:
event bsc:roSocketEvent refcnt=2
global Interface:ifGlobal
m roAssociativeArray refcnt=5 count:14
changedid Integer val:87031818 (&h530000A)
newconnection <uninitialized>
connection bsc:roStreamSocket refcnt=2
client Invalid
clientid Invalid
id <uninitialized>
closed Boolean val:false
bufferedstr String (VT_STR_CONST) val:""
reachedendofmessage Boolean val:false
buffer bsc:roByteArray refcnt=1
received <uninitialized>
dgram <uninitialized>
Threads:
ID Location Source Code
0* ...rce/channel/socketServer.brs(71) received = connection.receive(buffer, 0, 512)
*selected