Search found 47 matches

by Roger Hågensen
Fri Dec 21, 2018 1:04 pm
Forum: Bugs - Windows
Topic: PB 5.70 B4 x64 WriteData 2GB and 4GB bug?
Replies: 1
Views: 938

Re: PB 5.70 B4 x64 WriteData 2GB and 4GB bug?

I haven't tested ReadData, it's possible it has similar issues too?
by Roger Hågensen
Fri Dec 21, 2018 12:50 pm
Forum: Bugs - Windows
Topic: PB 5.70 B4 x64 WriteData 2GB and 4GB bug?
Replies: 1
Views: 938

PB 5.70 B4 x64 WriteData 2GB and 4GB bug?

I was testing SSD write speed using this quick'n'dirty code (further below) with PB x64, Beta 4 of v5.70 and ran into a odd issue. If the memsize is larger than 2GB (-1 byte) the value returned by WriteData is negative. And if the size is larger than 4GB (-1 byte?) it returns 0. Now WriteData being ...
by Roger Hågensen
Tue Feb 06, 2018 1:15 am
Forum: Announcement
Topic: PureBasic 5.62 released !
Replies: 59
Views: 31775

Re: PureBasic 5.62 released !

PureBasic incomes are not big enough (by far) to hire someone Time to change the license model for new buyers, then, and "grandfather" the old? That could cause some blowback if done on the 5.xx series, and even if done with the 6.xx series the license would still be downgraded compared t...
by Roger Hågensen
Thu Nov 23, 2017 10:46 pm
Forum: Tricks 'n' Tips
Topic: Get the real display refresh rate for Windows DWM
Replies: 1
Views: 1526

Get the real display refresh rate for Windows DWM

;This quick'n'dirty example will tell you the frequency (Hz) of the primary system display. ;In a multimonitor system the DWM uses the frequency of the primary display. ;The VSync of windowed programs should be tied to this. ;You still need to do your own timing loop and calculate a frame delta. Bu...
by Roger Hågensen
Wed Jun 14, 2017 9:56 pm
Forum: Feature Requests and Wishlists
Topic: mp3 now license free?
Replies: 5
Views: 2788

Re: mp3 now license free?

Unfortunately the Opus codec hasn't really taken off. Which is false. Opus is part of the WebRTC standard, which means all modern browsers should support it. All modern audio and media players support it too. The english wikipedia, however states that the last patent might not expire before Decembe...
by Roger Hågensen
Sun May 07, 2017 6:58 pm
Forum: Windows
Topic: OpenWindow & Maximized state.
Replies: 3
Views: 2344

Re: OpenWindow & Maximized state.

A maximized borderless window causes Windows to treat it as a non-exclusive fullscreen window. I do not recall when Windows started doing it but it's been around for as long as I can recall. Possibly before Windows XP (might even go all the way back to Windows 95). (I'm using the terms non-exclusive...
by Roger Hågensen
Wed Feb 08, 2017 4:21 pm
Forum: The PureBasic Editor
Topic: Color Themes for PureBasic
Replies: 10
Views: 6362

Re: Color Themes for PureBasic

This one I'm calling "PureBasic Dark Color.prefs" I'm a lot happier with this, the colors are toned down a bit and are more varied but still has the same "feel" to them. This will probably be my regular one going forward. ; PureBasic IDE Exported Preferences ; Color settings ; [C...
by Roger Hågensen
Wed Feb 08, 2017 6:58 am
Forum: Feature Requests and Wishlists
Topic: Blurry PB Editor on Windows 10, manifest file needs updating
Replies: 2
Views: 1380

Blurry PB Editor on Windows 10, manifest file needs updating

PureBasic use a older (Windows 8.1?) manifest file. Due to this Windows will resize PureBasic's windows on high DPI displays (or if you set DPI scaling in the system to 125 for example). A quick fix (for the user) is to toggle the compatibility checkmark option in the properties of the PB executable...
by Roger Hågensen
Wed Feb 08, 2017 6:49 am
Forum: Feature Requests and Wishlists
Topic: Configure Tools per project.
Replies: 0
Views: 1057

Configure Tools per project.

Currently you can configure a global tool and then enable/disable it for each project. I'd like to suggest the ability to also configure a tool per project. That way the settings are kept in the project file and should you ever need to wipe PureBasic's prefs (clean re-install) then you won't loose y...
by Roger Hågensen
Wed Feb 08, 2017 6:27 am
Forum: The PureBasic Editor
Topic: Color Themes for PureBasic
Replies: 10
Views: 6362

Color Themes for PureBasic

I kinda like the Visual Studio Code Dark+ Color theme and this is my quick "port" of the colors, I'm not 100% happy with how it looks but it's close enough. I may tweak it later myself. Where possible I used the exact colors as those used in the Dark+ theme. My theme has no real name, but ...
by Roger Hågensen
Fri Sep 30, 2016 7:48 am
Forum: Tricks 'n' Tips
Topic: No Stop No Sleep [Windows]
Replies: 7
Views: 2629

Re: No Stop No Sleep [Windows]

If it didn't work you did it wrong. As per https://msdn.microsoft.com/en-us/library/windows/desktop/aa373208(v=vs.85).aspx "This function does not stop the screen saver from executing." "to keep the display or system in the working state, the thread must call SetThreadExecutionState p...
by Roger Hågensen
Fri Sep 30, 2016 7:05 am
Forum: Windows
Topic: Windows Keep Awake - 64bit
Replies: 8
Views: 3616

Re: Windows Keep Awake - 64bit

@Dude

One word (two actually): Race condition

At the moment the idle is triggered the user may type again.
if the code is slow, from the time the idle detection is triggered until your code send the fake key presses the user may already be holding down a key
by Roger Hågensen
Fri Sep 30, 2016 6:13 am
Forum: Feature Requests and Wishlists
Topic: Get rid of MSVCRT.DLL dependancy
Replies: 2
Views: 1489

Get rid of MSVCRT.DLL dependancy

For a bit of history (and why you should not use) MSVCRT you can read here https://blogs.msdn.microsoft.com/oldnewthing/20140411-00/?p=1273 PureBasic (linker?) seems to use MSVCRT for stuff like malloc, but on Windows there are Win32 APIs that does the same. (and MSVCRT wraps those APIs anyway). msv...
by Roger Hågensen
Wed Sep 07, 2016 3:39 pm
Forum: Announcement
Topic: BASS audio library v2.4.11 and PureBasic 5.31 includes
Replies: 4
Views: 5610

Re: BASS audio library v2.4.11 and PureBasic 5.31 includes

You need to do re-sampling. Also this is announcement post. Might want to post your question in http://www.purebasic.fr/english/viewforum.php?f=13 Or visit the BASS website at http://www.un4seen.com/ In the menu on the right is the forum link for BASS. The forums there are generally helpful just lik...