http://gambaswiki.org/bugtracker/edit?object=BUG.958&from=L21haW4-
Tobias BOEGE changed the state of the bug to: Fixed.
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explor
http://gambaswiki.org/bugtracker/edit?object=BUG.960&from=L21haW4-
zxMarce reported a new bug.
Summary
---
Cannot get dynamically created SerialPort control events to raise.
Type : Bug
Priority : Medium
Gambas version : 3.8
Product : Networking components
De
You are aware events like _Read() only will be called in 'wait' loop? If
you call 'sleep' or only process data without waiting on anything, the
event will NEVER be called.
In you example "SerPort_Read" has no real usage, you declare it as event,
but is never used as event.
2016-07-01 13:47 GMT+02
http://gambaswiki.org/bugtracker/edit?object=BUG.960&from=L21haW4-
Comment #1 by Alexander KUIPER:
You are aware events like _Read() only will be called in 'wait' loop? If you
call 'sleep' or only process data without waiting on anything, the event will
NEVER be called.
In you example "SerPort
http://gambaswiki.org/bugtracker/edit?object=BUG.960&from=L21haW4-
Comment #2 by zxMarce:
Nope, did not know that! Will try again and see how it goes.
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park
http://gambaswiki.org/bugtracker/edit?object=BUG.960&from=L21haW4-
Comment #3 by zxMarce:
Alex,
That friggin' did it. Now the event works as expected.
So, WAIT inside a non-event handler loop instead of SLEEP.
As per the docs SLEEP should be used inside event handlers to avoid stack
overruns, b
http://gambaswiki.org/bugtracker/edit?object=BUG.960&from=L21haW4-
Comment #4 by Tobias BOEGE:
To conclude: the warning in [1] targets cases such as this:
- you enter an event handler for a read-ready stream (like Process_Read)
- without reading any data, you call Wait.
Since the stream is s
http://gambaswiki.org/bugtracker/edit?object=BUG.960&from=L21haW4-
Comment #5 by zxMarce:
Tobias,
Not precisely the case, but yup, the bug's invalid.
I originally used SLEEP out of the event handler, thus -unknowingly to me-
giving Gambas no chance to actually trigger the event. Never used WAI