Hi all,<br><br>In the following fragment, I'm trying to create a new event, queue a callback to some handler to process that event, and then clear the event. <br><br> (define/private (create-message)<br> ...<br>
(set! the-event (new some-event%))<br>
...<br> )<br>
<br> (define/private (queue-message receiver event)<br> ...<br> (when can-queue-message?<br> (queue-callback <br> (lambda () (send the-handler handle-event the-event))) <br> #t) <br>
...<br>
(set! the-event #f)<br> ...<br>
)<br><br>However the event value that the handler actually sees is
#f, i.e. the result after the event is cleared, and not as I want a
reference to the event to process, i.e. the object resulting from the call to new. <br><br>What is the best way to get to the handler, a reference to the event it needs to process?<br><br>Cheers,<br><br>Kieron.<br><br>