Stupid workaround for ViewPort problem under Vista
Hanno
Posts: 1,130
Don't laugh- it works:
When running ViewPort under Vista, CPU usage is maxed out when the mouse cursor is inside the text editor. (the rectangle that contains your source code)
This will make ViewPort appear to run very slowly....
The workaround for the next couple days is to leave the mouse cursor OUTSIDE of the text editor [noparse]:)[/noparse]
I've already fixed the code and will release v4.1.5 when I fix a couple other issues...
Having lost OBC's challenge, I'm trying to win the "stupidest workaround to a microsoft bug contest". I hope I'll win this time!
The bug is caused by me using the "mousemoved" event to detect when the mouse is moved. On operating systems before Vista, this event would be triggered when the mouse moves- that makes sense. On Vista, this even is thrown CONTINUALLY, even when the mouse hasn't moved!
Another Vista issue: the font that ViewPort needs for the "code" window is the "Parallax.ttf" font. For some reason a Vista security issue prevents ViewPort from finding the font if the font's security level is not "all". This causes ViewPort to use a different font which means your line numbers don't line up with the text lines. To fix it, find the "parallax.ttf" font in the "windows/font" directory and change the security setting to "full control". (thanks eddy) I don't understand this issue yet and haven't fixed it....
Hanno
When running ViewPort under Vista, CPU usage is maxed out when the mouse cursor is inside the text editor. (the rectangle that contains your source code)
This will make ViewPort appear to run very slowly....
The workaround for the next couple days is to leave the mouse cursor OUTSIDE of the text editor [noparse]:)[/noparse]
I've already fixed the code and will release v4.1.5 when I fix a couple other issues...
Having lost OBC's challenge, I'm trying to win the "stupidest workaround to a microsoft bug contest". I hope I'll win this time!
The bug is caused by me using the "mousemoved" event to detect when the mouse is moved. On operating systems before Vista, this event would be triggered when the mouse moves- that makes sense. On Vista, this even is thrown CONTINUALLY, even when the mouse hasn't moved!
Another Vista issue: the font that ViewPort needs for the "code" window is the "Parallax.ttf" font. For some reason a Vista security issue prevents ViewPort from finding the font if the font's security level is not "all". This causes ViewPort to use a different font which means your line numbers don't line up with the text lines. To fix it, find the "parallax.ttf" font in the "windows/font" directory and change the security setting to "full control". (thanks eddy) I don't understand this issue yet and haven't fixed it....
Hanno
Comments
I had / have the same problem with bst on Vista. The way I worked around it was to install the Parallax font using the fonts folder in the control panel. For some reason that works, but it will only work for the Propeller Tool if you just let the normal installer install it. More Microsoft Madness!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cardinal Fang! Fetch the comfy chair.