Search found 1729 matches

by kenmo
Tue Sep 14, 2021 2:25 pm
Forum: Coding Questions
Topic: error available from cmd prompt, but not in PureBasic
Replies: 4
Views: 385

Re: error available from cmd prompt, but not in PureBasic

You are overwriting error.s every loop! ReadProgramError() is not set-once and then retains its text value. It is a data stream, like ReadProgramString() (I wish the PB functions handled these streams equally). So once you read an error string, it's gone the next time you check it. Check that ReadPr...
by kenmo
Mon Sep 13, 2021 3:27 am
Forum: Feature Requests and Wishlists
Topic: StrD() Inconsistency
Replies: 10
Views: 1152

Re: StrD() Inconsistency

Glad you have a working solution :) Maybe your feature request will simplify this in the future.
by kenmo
Mon Sep 13, 2021 3:26 am
Forum: Feature Requests and Wishlists
Topic: Allow redefinition of PureBasic functions within modules
Replies: 16
Views: 2381

Re: Allow redefinition of PureBasic functions within modules

+1

Somebody (I think Luis) did a good writeup on the conflicts of PB modules, which make them less useful than they truly could be.
It's partially why I ended up staying with regular IncludeFiles.
by kenmo
Mon Sep 13, 2021 3:23 am
Forum: Off Topic
Topic: Advertising banner on Purebasic Forum
Replies: 14
Views: 1327

Re: Advertising banner on Purebasic Forum

I wonder how much they really make from these ads, whether a few of us could pay enough to "sponsor" the forum and no longer need the ads :mrgreen:
by kenmo
Fri Sep 10, 2021 4:34 am
Forum: Feature Requests and Wishlists
Topic: StrD() Inconsistency
Replies: 10
Views: 1152

Re: StrD() Inconsistency

Right, Int(MyDouble) = MyDouble is just a guess of whether it "seems" to be an integer or not. What I don't understand is your real usage: Do you control the JSON being parsed? If you know the meanings of the numbers being parsed, you can assign them to integers or doubles, whatever makes ...
by kenmo
Fri Sep 10, 2021 4:17 am
Forum: Feature Requests and Wishlists
Topic: GetJSONRaw(JSONValue)
Replies: 4
Views: 546

Re: GetJSONRaw(JSONValue)

+1 but with a slight suggestion Really your request is for numbers, right? Like for the value 13, you want the original "13.000" as it's written. That's not useful for the other JSON types: null is always "null", boolean is always "true" or "false", string is ...
by kenmo
Fri Sep 10, 2021 4:00 am
Forum: Bugs - C backend
Topic: Division by zero
Replies: 2
Views: 606

Re: Division by zero

From a StackOverflow discussion: https://stackoverflow.com/questions/55916832/0-0-in-c-gcc-7-or-higher undefined behavior (by the C standard) does not mean and error (static or at runtime) has to be generated. It could also mean that a random number is returned (1 in this case). Probably the compile...
by kenmo
Wed Sep 08, 2021 7:52 pm
Forum: Feature Requests and Wishlists
Topic: StrD() Inconsistency
Replies: 10
Views: 1152

Re: StrD() Inconsistency

Hi, I think there are two separate concerns colliding here: 1. StrD() Remember, whether you write 1.4 or 1.400, it results in the exact same floating point value, so StrD() has no idea how many decimal places you originally intended. a.d = 1.4 b.d = 1.400 Debug Bin(PeekQ(@a), #PB_Quad) Debug Bin(Pee...
by kenmo
Wed Sep 08, 2021 2:53 pm
Forum: Coding Questions
Topic: The gif animation freezes
Replies: 5
Views: 671

Re: The gif animation freezes

punak, it's no problem with the GIF code, you're just not using the thread correctly! If you call myLoop(0) , you're not creating a background thread, you're just running the whole function which takes ~10 seconds for me. If you call WaitThread(CreateThread(@myLoop(),0)) , you ARE creating a thread ...
by kenmo
Mon Sep 06, 2021 8:19 pm
Forum: Bugs - Mac OSX
Topic: [5.73] FileRequester bug if not in .app
Replies: 5
Views: 816

Re: [5.73] FileRequester bug if not in .app

Oh yes, definitely, I understand the OS may start it in "Prohibited" mode if it's outside a .app But it could be considered a PB bug that the Requester library doesn't check/set the Activation Policy... if you're opening a file requester surely you need mouse/keyboard input! MessageRequest...
by kenmo
Mon Sep 06, 2021 3:20 am
Forum: Bugs - Mac OSX
Topic: [5.73] FileRequester bug if not in .app
Replies: 5
Views: 816

Re: [5.73] FileRequester bug if not in .app

DESEVEN! My hero! These Cocoa fixes are always magic to me. I never would have guessed that moving an executable outside of a .app/ causes its "ApplicationActivationPolicy" to change to "Prohibited" :?: :?: :?: I confirmed your CocoaMessage() fixes my problem. I wish I knew this ...
by kenmo
Sun Sep 05, 2021 1:45 am
Forum: Bugs - Mac OSX
Topic: [5.73] FileRequester bug if not in .app
Replies: 5
Views: 816

[5.73] FileRequester bug if not in .app

I'm on MacOS Catalina with PB 5.73 x64 I have noticed this in the past, but it's happening again in my latest program. The OpenFileRequester is buggy (doesn't respond to left-click or keyboard, can only Cancel) if not run from a packaged .app That means, either build it in Console mode (so you just ...
by kenmo
Fri Aug 27, 2021 4:03 am
Forum: Announcement
Topic: Removing the "Remote debugging" feature from the debugger
Replies: 27
Views: 2671

Re: Removing the "Remote debugging" feature from the debugger

Hello Luis (I too respect you and your contributions, and your writeups on the good and bad of PureBasic!) :) If freak's intent was " only reply if Yes you use it " then I apologize, and maybe freak could add that note? Personally I appreciate the replies, it shows people are engaged and h...
by kenmo
Thu Aug 26, 2021 5:05 am
Forum: Bugs - Windows
Topic: [5.73] Win XP StringGadget no Ctrl+A select
Replies: 2
Views: 1197

Re: [5.73] Win XP StringGadget no Ctrl+A select

Yep. And if you don't want to steal the Ctrl+A from all your other gadgets, intercept its WindowProc! Procedure StringGadgetWndProc(hWnd, uMsg, wParam, lParam) If (uMsg = #WM_KEYDOWN) And (lParam & $40000000 = 0) And (wParam = 'A') And (GetAsyncKeyState_(#VK_CONTROL) & $8000) PostMessage_(hW...
by kenmo
Thu Aug 26, 2021 4:39 am
Forum: Announcement
Topic: Removing the "Remote debugging" feature from the debugger
Replies: 27
Views: 2671

Re: Removing the "Remote debugging" feature from the debugger

Never used this feature!

I think making the IDE project simpler to build and test is much more important.