Welcome, Guest. Please login or register.

Author Topic: Ball isn't moving  (Read 6607 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline davideo

Re: Ball isn't moving
« on: November 04, 2010, 10:08:35 PM »
I've compiled this on my system and it tells me that the application is waiting for signals 0x40000000 to arrive.

Dave G

Edit: In fact if you comment out this line

signals = Wait(window_signal);

You will find the ball will bounce left and right as you wanted it to. BUT you can't close the window and on my OS3.9 4000D it will crash when killing the program.
« Last Edit: November 04, 2010, 10:48:23 PM by davideo »
 

Offline davideo

Re: Ball isn't moving
« Reply #1 on: November 07, 2010, 01:08:27 AM »
Quote from: Omega Space Protons;589932
That's weird cause the line:

signals = Wait(window_signal);

Is supposed to process all the signals a few lines after that there's a ReplyMsg() call which should cover the hanging 0x4000000000 signals problem. How do I reply to all IDCMP messages and also how do I prevent further IDCMP messages from occurring after the user closes the window?

Omega Space Protons


The problem is that the Wait command does just that - it sits and Waits - this is why your ball doesn't move.

The command you need to look into is GetMsg and the actual IDCMP flags you've got set.

Dave G :cool: