Search found 27 matches

by bsilver
Thu Oct 19, 2023 9:10 pm
Forum: Coding Questions
Topic: Program hanging on exit...but why?
Replies: 7
Views: 833

Re: Program hanging on exit...but why?

This is kind of surprising, but after adding some logic to the thread for exiting I'm having trouble reproducing the hanging behavior. Before, it always exited without caring about that thread. The only change to the source involved editing it to use a combobox on a different form and was working on ...
by bsilver
Thu Oct 19, 2023 7:01 pm
Forum: Coding Questions
Topic: Program hanging on exit...but why?
Replies: 7
Views: 833

Re: Program hanging on exit...but why?

The thread is just looping and listening for UDP packets and until recently, clicking quit just closed everything out, including the thread. But I'll add a check to the thread so it exits or is terminated at that point and see if...for some reason...it's preventing the executable from closing ...
by bsilver
Thu Oct 19, 2023 6:48 pm
Forum: Coding Questions
Topic: Program hanging on exit...but why?
Replies: 7
Views: 833

Program hanging on exit...but why?

I'm at a bit of a loss in figuring out what's happening here and hope someone has some insight on diagnosing it.

The code is a bit much to paste here without narrowing down where something is going wrong, so I'll try to describe it as best as I can and post more details if someone can point out ...
by bsilver
Fri Oct 13, 2023 7:59 pm
Forum: Coding Questions
Topic: Reading data received via UDP
Replies: 3
Views: 439

Re: Reading data received via UDP

That seems to be the fix! Thanks, HeX0R! I replaced intConnectionID in ReceiveNetworkData() with EventID() as the parameter and I started getting the UDP broadcast message!

Regarding the buffer part, could you elaborate on that? I was freeing it to prevent having garbage data being re-read or ...
by bsilver
Fri Oct 13, 2023 7:44 pm
Forum: Coding Questions
Topic: How to generate a brief self-closing message
Replies: 25
Views: 3475

Re: How to generate a brief self-closing message

Doesn't the desktop require certain permissions in order to have access to the logged-in user's desktop session? Maybe you could get a trace of what's happening with some of the sysinternals tools on https://learn.microsoft.com/en-us/sysin ... downloads/
by bsilver
Fri Oct 13, 2023 6:32 pm
Forum: Coding Questions
Topic: Reading data received via UDP
Replies: 3
Views: 439

Reading data received via UDP

I think I'm missing something really BASIC in trying to read a UDP message after a network event.

The loop that is supposed to be handling this:

; Check for a UDP server event
LockMutex(mutNetUDPReference)
intEventNet = NetworkServerEvent(structNetUDPListener\intConnectionID)
intConnectionID ...
by bsilver
Wed Sep 27, 2023 3:29 pm
Forum: Mac OSX
Topic: PureBasic Debugger The debugged executable quit unexpectedly.
Replies: 12
Views: 2488

Re: PureBasic Debugger The debugged executable quit unexpectedly.

@victorprogra do you know if this only happens when compiled with debugger support in the executable, or does the application run if the debugger is disabled?
by bsilver
Thu Sep 21, 2023 11:00 pm
Forum: Feature Requests and Wishlists
Topic: Project files as compiler definitions
Replies: 2
Views: 582

Re: Project files as compiler definitions

Awesome, thanks!
by bsilver
Thu Sep 21, 2023 5:12 pm
Forum: Feature Requests and Wishlists
Topic: Project files as compiler definitions
Replies: 2
Views: 582

Project files as compiler definitions

Maybe I missed it in documentation, but what I'd like to do is have a way to point a command-line compiler at a project or some kind of definition file, generated by the IDE, that has all the flags to generate the executable(s) for a project by simply pointing the compiler to the project file.

My ...
by bsilver
Thu Sep 21, 2023 4:24 pm
Forum: Mac OSX
Topic: PureBasic Debugger The debugged executable quit unexpectedly.
Replies: 12
Views: 2488

Re: PureBasic Debugger The debugged executable quit unexpectedly.

As a side note...don't know if it helps...I'm seeing a similar issue (posted about in general discussion) and it seemed to correlate to an update in the command line tools for Xcode.
by bsilver
Thu Sep 21, 2023 4:04 am
Forum: General Discussion
Topic: Xcode CLI tools and PB dependency
Replies: 1
Views: 672

Xcode CLI tools and PB dependency

I'm trying to troubleshoot an issue where my Mac (Intel, MacOS Ventura 13.5.2) running PB (x64, 6.02 LTS) produces executables that crash whenever I try launching them.

I have one application I was working on that I still have a compiled .app file (graphical). It launches and seems to work. I ...
by bsilver
Wed Sep 20, 2023 4:26 am
Forum: Coding Questions
Topic: Checking understanding: PB and HTTPS
Replies: 2
Views: 533

Checking understanding: PB and HTTPS

I was talking to someone about PB and at one point the topic came supporting a simple HTTPS server.

I have been searching through the forums after not finding anything directly in the documentation. I'm hoping someone could verify that my understanding of the current status of HTTPS-type support ...
by bsilver
Fri Sep 08, 2023 4:05 am
Forum: Coding Questions
Topic: Clarifying form/gadget event handling vs other events
Replies: 3
Views: 562

Clarifying form/gadget event handling vs other events

Greetings. I know it's best to check for and handle events that affect graphical gadgets from a single "main" event loop, so procedures and other threads must pass updates back to that primary event loop procedure to have updates properly processed.

Does this only apply to graphical widget events ...
by bsilver
Fri Aug 25, 2023 4:25 pm
Forum: Coding Questions
Topic: StringGadget and update, event queues?
Replies: 14
Views: 1207

Re: StringGadget and update, event queues?


Only update the UI from the main thread. Use PostEvent() from any threads you've spawned to notify the main thread to perform the update.


You're saying find a way to store the message in a scope visible to the main thread and use a postevent() call to have the main thread pick up the ...
by bsilver
Fri Aug 25, 2023 3:14 pm
Forum: Coding Questions
Topic: StringGadget and update, event queues?
Replies: 14
Views: 1207

StringGadget and update, event queues?

Still very new to using PureBasic, so this may help my understanding of the implementation of the language...

I have a form with a string gadget.
A button is clicked. This event is detected in the main thread, and calls CreateThread(@ConnectToSystem(),0), creating a new thread.

That thread is ...