Bug, perhaps?

BlitzMax Forums/BlitzMax Programming/Bug, perhaps?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Okay, I did some more tests, commenting out small sections at a time to see what might be the culprit.

This is just getting stranger. I commented out all of the code except for the While loop start and Wend, and nothing was written to the log.

I then tried commenting out just the while start and end commands, leaving both calls to Listen() intact (well, all of my code actually), and IT WORKED!

Just to be clear, this didn't work

Strict


Import "Framework_TConnection.bmx"

GErrorLog.LogData( "look, this better ******* work!" )

rem
Global ListeningManager:TListeningManager = TListeningManager.Create()
Global ConnectionManager:TConnectionManager = New TConnectionManager

ListeningManager.SetConnectionManager( ConnectionManager )
ListeningManager.AddPort( 30001 )
endrem

While Not KeyHit( KEY_ESCAPE )
'ListeningManager.Listen()
'ConnectionManager.Listen()
Wend


and this did work

Strict


Import "Framework_TConnection.bmx"

GErrorLog.LogData( "look, this better ******* work!" )

Rem
This is all commented out...

Global ListeningManager:TListeningManager = TListeningManager.Create()
Global ConnectionManager:TConnectionManager = New TConnectionManager

ListeningManager.SetConnectionManager( ConnectionManager )
ListeningManager.AddPort( 30001 )
end rem

'While Not KeyHit( KEY_ESCAPE )----------commented out
ListeningManager.Listen()
ConnectionManager.Listen()
'Wend------------------commented out




Somehow, the while loop itself is interfering with my loggers ability to write to a file? Uh...::scratches head::