Posted: Wed Mar 26, 2003 11:28 pm
Restored from previous forum. Originally posted by Tomio.
Hello,
since recently I have a strange behavior (I call it "mousePong") with programs on WinXP, e.g. the one below.
The program is for demonstration only. It does nothing than waiting for Key_Escape.
BUT: WHENEVER you press a mousebutton, a sound occurs.
It's the same "pong" you hear with a MessageRequester command.
This mousePong does NOT happen, if I remove the FlipBuffers() line!
Unfortunately my oldest unmodified exe is 10 days old only. With this program there is no mousePong!
But EVERY program (complex or simple) I compile new (or choose from Programme/Purebasic/Examples/Sources) with the FlipBuffers command has this sound.
The demo program was compiled with my first PB version, PB2.90. The same mousePong!
From that I conclude that it's not PB, but some modification/installation of WinXP being responsible for.
But I can't remember any installation in the last days.
Perhaps one of you has an idea what could be the reason. If not, I'll have to live with mousePongs in PB's exe for the life of this computer.
;demo mousePong
If InitKeyboard() = 0
MessageRequester("Error", "Can't initialize Keyboard", 0)
End
EndIf
If InitSprite() = 0
MessageRequester("Error", "Can't initialize Sprite", 0)
End
EndIf
If OpenScreen(800, 600, 16, "Mouse") = 0
MessageRequester("Error", "screen",0)
End
EndIf
;
Repeat
FlipBuffers() ;no mousePong if removed!
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
../tomio
Hello,
since recently I have a strange behavior (I call it "mousePong") with programs on WinXP, e.g. the one below.
The program is for demonstration only. It does nothing than waiting for Key_Escape.
BUT: WHENEVER you press a mousebutton, a sound occurs.
It's the same "pong" you hear with a MessageRequester command.
This mousePong does NOT happen, if I remove the FlipBuffers() line!
Unfortunately my oldest unmodified exe is 10 days old only. With this program there is no mousePong!
But EVERY program (complex or simple) I compile new (or choose from Programme/Purebasic/Examples/Sources) with the FlipBuffers command has this sound.
The demo program was compiled with my first PB version, PB2.90. The same mousePong!
From that I conclude that it's not PB, but some modification/installation of WinXP being responsible for.
But I can't remember any installation in the last days.
Perhaps one of you has an idea what could be the reason. If not, I'll have to live with mousePongs in PB's exe for the life of this computer.
;demo mousePong
If InitKeyboard() = 0
MessageRequester("Error", "Can't initialize Keyboard", 0)
End
EndIf
If InitSprite() = 0
MessageRequester("Error", "Can't initialize Sprite", 0)
End
EndIf
If OpenScreen(800, 600, 16, "Mouse") = 0
MessageRequester("Error", "screen",0)
End
EndIf
;
Repeat
FlipBuffers() ;no mousePong if removed!
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
../tomio