Search found 1666 matches

by Rescator
Fri Aug 08, 2014 3:59 am
Forum: Announcement
Topic: Removing 'ASCII' switch from PureBasic
Replies: 210
Views: 101033

Re: Removing 'ASCII' switch from PureBasic

With Ascii$ being a new feature request Why? That is exactly the way it is now. You are asking them to remove it then re-add it? Ascii$ would require all the same double code as today. Show an example of problem software to run into. Normally you call a API or DLL function, and pass along pointer t...
by Rescator
Fri Aug 08, 2014 3:30 am
Forum: Announcement
Topic: Removing 'ASCII' switch from PureBasic
Replies: 210
Views: 101033

Re: Removing 'ASCII' switch from PureBasic

I have the same issue as Skywalk. My code interfaces with quite a few external processes and machines. A couple of them seem to have been written in the 70's. Not one of them supports Unicode right now. That part is pretty simple. You use PeekS or PokeS or you use pseudo types for Import and dlls e...
by Rescator
Fri Aug 08, 2014 3:06 am
Forum: Announcement
Topic: Removing 'ASCII' switch from PureBasic
Replies: 210
Views: 101033

Re: Removing 'ASCII' switch from PureBasic

why can't we have our cake and eat it too? I mean, there are double and float and quad and long datatypes and they have their place. I'm all for a more robust compiler and the benefits of a less stressed development team, but it is unclear to me from a user point of view, why Ascii$ cannot coexist ...
by Rescator
Fri Aug 08, 2014 2:49 am
Forum: Announcement
Topic: Removing 'ASCII' switch from PureBasic
Replies: 210
Views: 101033

Re: Removing 'ASCII' switch from PureBasic

This is making big assumptions about how heavily the string functions are used. Every benchmark I have seen and/or tried shows PB's Unicode 60-80 percent slower. When strings are the primary function of the project, that is enormous. (BTW, I chose PB over C primarily because of the native strings.)...
by Rescator
Fri Aug 08, 2014 1:38 am
Forum: Announcement
Topic: Removing 'ASCII' switch from PureBasic
Replies: 210
Views: 101033

Re: Removing 'ASCII' switch from PureBasic

Never thought I'd see so many programmers say such dumb things or speak out with such ignorance about something, I feel almost ashamed to be on the same forum as some of you here now. FACT: Windows 2000, XP, Vista, 7, 8, and all the server variants and other variants of the Windows NT core are Unico...
by Rescator
Tue Oct 08, 2013 3:43 am
Forum: Bugs - Windows
Topic: [5.20 LTS] SetGadgetFont causes WindowedScreen crash on exit
Replies: 3
Views: 1754

Re: [5.20 LTS] SetGadgetFont causes WindowedScreen crash on

I have also noticed something else that is odd. If a UAC/elevation occurs (darkened screen with password box etc) then DirectX9 and DirectX11 rendering stops. But OpenGL however will continue rendering. Again the only thing different is the subsystem the code is otherwise identical, this combined wi...
by Rescator
Mon Oct 07, 2013 8:39 pm
Forum: Bugs - Windows
Topic: [5.20 LTS] SetGadgetFont causes WindowedScreen crash on exit
Replies: 3
Views: 1754

Re: [5.20 LTS] SetGadgetFont causes WindowedScreen crash on

Some more info related to the above, A larger program of mine (which does not use SetGadgetFont) also crashes on exit. 3 DLLs exist each compiled with the subsystem DirectX11 and OpenGL and no subsystem (DirectX9), otherwise the DLLs are identical. The DLL is loaded by and the functions used by the ...
by Rescator
Sun Sep 22, 2013 11:55 am
Forum: Bugs - Windows
Topic: [5.20 LTS] SetGadgetFont causes WindowedScreen crash on exit
Replies: 3
Views: 1754

[5.20 LTS] SetGadgetFont causes WindowedScreen crash on exit

This is a really weird one. If a WindowedScreen is created in a DLL, and SetGadgetFont is just referenced (not even used) in the program then the program crashes on exit. Compile this source to a DLL ProcedureDLL.i TestRenderer_Init(windowid,width,height,framerate) Protected result.i=#False If InitS...
by Rescator
Sun Sep 22, 2013 12:19 am
Forum: Coding Questions
Topic: any tip/trick for avoid memory leak?
Replies: 24
Views: 5722

Re: any tip/trick for avoid memory leak?

Also keep in mind that Windows caches stuff. So even if you free memory then Windows may still keep that memory in your program just in case your program will use it again (thus task manager may show higher memory use than you actually have). The same happens if you read files, Windows will have fil...
by Rescator
Sat Sep 21, 2013 11:58 pm
Forum: Coding Questions
Topic: Bug with EventWindow() in PB 5.20 LTS
Replies: 10
Views: 2163

Re: Bug with EventWindow() in PB 5.20 LTS

I can't answer to if this is a bug or not, but I can tell you that the following code is not a good way to make a loop: [quote="CalamityJames"]The following code works in PB5.11 but not in the latest version. If you run the code and follow the on-screen instructions EventWindow() will give...
by Rescator
Wed Sep 18, 2013 7:30 am
Forum: Announcement
Topic: PureBasic 5.20 LTS is out (Rockstar release)
Replies: 78
Views: 32683

Re: PureBasic 5.20 LTS is out (Rockstar release)

Awesome work PB Team.


Also, could those of you saying that the next PB is v5.3 please stop doing that, at least say v5.30 as v5.3 is smaller than v5.20, we wouldn't want regression now would we? :P
by Rescator
Sat Aug 31, 2013 8:30 am
Forum: Off Topic
Topic: Forum Tags / Topic Prefix
Replies: 0
Views: 649

Forum Tags / Topic Prefix

Forum tags is something I'd love to see. Does not matter if it's predefined tags only or not. That way we could tag stuff with tags like these... OS Tags: Windows, Linux, Mac Version Tags: 5.11, 5.20 Beta Tags: 5.20 B16, 5.20 B17 Source Tags: Complete, Include, Snippet Post Tags: Question, Answer Sp...
by Rescator
Sat Aug 31, 2013 7:47 am
Forum: Off Topic
Topic: Tricks 'n' Tips rules (guidelines?) suggestion
Replies: 0
Views: 836

Tricks 'n' Tips rules (guidelines?) suggestion

I'd like to see some rules for the new Tricks 'n' Tips forum section. This is my suggestion, a sticky with these rules should be posted in Tricks 'n' Tips: 1. Any code posted must be code-complete. This means the first post (or first + second, or first + second + third) must have all code/informatio...
by Rescator
Sat Aug 31, 2013 6:47 am
Forum: Tricks 'n' Tips
Topic: [Windows] Find Program handle/info on window title search.
Replies: 4
Views: 3607

Re: [Windows] Find Program handle/info on window title searc

Updated, added version and done by whom comment (for those that like to keep track of that). Now the full imagepath is retrieved, added fallback for any OS older than Vista, on really old systems there is a triple fallback, and on ancient systems there should be just an empty string. No assumption a...
by Rescator
Sat Aug 31, 2013 5:07 am
Forum: Tricks 'n' Tips
Topic: [Windows] Find Program handle/info on window title search.
Replies: 4
Views: 3607

Re: [Windows] Find Program handle/info on window title searc

As to exe being empty on foobar.txt and notepad, it was not so here, (worked as expected) so no idea what caused that. As to "Exe: \Device\HarddiskVolume2\" and similar, that is what GetProcessImageFileName returns. One could use QueryFullProcessImageName but that is only for Vista an late...