I compiled it using 4.51.
After the program was finished, I compiled it using 5.10 to see if the Vista hangs would disappear,
and they did not, so I released it using a 4.51 compile.
For a simple program such as the trainer I am more interested in backwards OS compatibility so I opt to use the older and more stable compiler.
As far as Vista is concerned, the program stops responding whenever the trainer window loses focus.
I am extremely happy to learn that you do not experience that problem in Windows 7.
I did not know that, and I had been assuming those users needed to run in the XP compatibility mode.
Thank you for that information.
As far as what happens in the full screen mode, I'd assume the same problem happens then, although I have not triggered it.
The screen initializations that are used:
Code: Select all
OpenWindow(0,0,0,800,600,"Button Trainer",#PB_Window_ScreenCentered|#PB_Window_BorderLess)
OpenWindowedScreen(WindowID(0),0,0,800,600,#True,0,0)
WX= WindowX(0) : WY= WindowY(0)
WW= WindowWidth(0) : WH= WindowHeight(0)
At this point in the problem analysis I'm thinking to ignore the full screen condition because the Vista hang happens in the default windowed mode.
However, the full screen mode is triggered by
Code: Select all
ResizeWindow(0,0,0,DesktopWidth(0),DesktopHeight(0))
The regular windowed mode is restored by
If posting this does not elicit a probable cause for the process hanging from those reading this thread,
then I'll do as you say and create a smaller example and post it in the appropriate section of the forum
for Vista users to help with.
Thanks again
luis for your kind assistance.