Thanks, I guessed it meant you simply handle the threading on your own as with any project.
Now another simple question, but for some reason I can't find the answer on forum or docs. How can I change the HTTP status that is returned with the cgi response? I may want to return http 204 or 400 etc...
Search found 29 matches
- Thu Jul 31, 2025 8:09 pm
- Forum: Coding Questions
- Topic: FastCGI and threading
- Replies: 3
- Views: 361
- Wed Jul 23, 2025 2:56 am
- Forum: Coding Questions
- Topic: FastCGI and threading
- Replies: 3
- Views: 361
FastCGI and threading
I'm messing about with FastCGI without much trouble (thank you PB) I am assuming requests coming in can be handled on multiple threads, but I'm not sure what this somewhat vague statement in the InitFastCGI section of the docs means:
This library support threaded FastCGI processing, when enabling ...
This library support threaded FastCGI processing, when enabling ...
- Thu Jul 17, 2025 2:42 pm
- Forum: Coding Questions
- Topic: Limits of OnErrorCall
- Replies: 7
- Views: 542
Re: Limits of OnErrorCall
Okay let me ask another way...
The OnError system is apparently not what I'm looking for, now that I understand its scope.
There is also the debugging system. In the event of a programming error (a bug! yes, we all let one escape into the wild now and then), If I compile a program with debugging ...
The OnError system is apparently not what I'm looking for, now that I understand its scope.
There is also the debugging system. In the event of a programming error (a bug! yes, we all let one escape into the wild now and then), If I compile a program with debugging ...
- Wed Jul 16, 2025 5:15 pm
- Forum: Coding Questions
- Topic: Limits of OnErrorCall
- Replies: 7
- Views: 542
Limits of OnErrorCall
I have an application that crashes, as in completely disappears with no errors, no warning, even though I have OnErrorCall() in place. I was hoping OnErrorCall allowed for unexpected errors to be trapped in a handler so I could do a graceful exit and log the event.
The application creates a PDF ...
The application creates a PDF ...
- Tue Jun 10, 2025 5:21 pm
- Forum: Bugs - Documentation
- Topic: Low priority wish: update PDF full docs
- Replies: 2
- Views: 1086
Low priority wish: update PDF full docs
Thanks for all the new PB features! I don't know how much work this is for the creators, but I'll ask: are there any plans to update the full documentation PDF available on website with the latest PB features/libraries?
I use the online help, but have found when I'm completely clueless, as in don't ...
I use the online help, but have found when I'm completely clueless, as in don't ...
- Sun Jun 02, 2024 3:13 pm
- Forum: Bugs - IDE
- Topic: Mouse hover, peeking at variable value
- Replies: 0
- Views: 4722
Mouse hover, peeking at variable value
Hello all, I searched variously and did not see this reported, but not sure how to describe it properly. Often when at a break point in IDE I hover the mouse over a variable name to see its value in the tool tip. I had a half hour of confusion one day when a variable value was coming up incorrectly ...
- Thu Mar 07, 2024 5:38 pm
- Forum: Feature Requests and Wishlists
- Topic: Map read-only or no-create-on-search states
- Replies: 5
- Views: 1237
Map read-only or no-create-on-search states
It would be nice if a Map could be optionally set into a state where a search for a non-existent item would not create that item with a default value. In other words this situation:
NewMap xTest.s()
If xTest("foo")="bar" ; if for whatever reason I want to test if a map element has a certain value ...
NewMap xTest.s()
If xTest("foo")="bar" ; if for whatever reason I want to test if a map element has a certain value ...
- Wed Jan 24, 2024 9:06 pm
- Forum: Coding Questions
- Topic: EditorGadget scroll to bottom
- Replies: 1
- Views: 417
EditorGadget scroll to bottom
I've been searching, sometimes simple answers hardest to find... After I've added text to an editorgadget, either through multiple calls to AddGadgetItem, or with one call to SetGadgetText (where the string contains multple CRLFs) ...how do I get the editorgadget to automatically scroll to the ...
- Wed Nov 29, 2023 7:19 pm
- Forum: Coding Questions
- Topic: Use ODBC and SQLite in same application
- Replies: 2
- Views: 636
Use ODBC and SQLite in same application
I have a project where I need to access a local SQLite database, and transfer data to a remote ODBC database. Is it possible to call both UseODBCDatabase() and UseSQLiteDatabase() in the same application so that I can connect to either db as needed with OpenDatabase?
- Thu Jun 15, 2023 8:54 pm
- Forum: Coding Questions
- Topic: Buffer size for SendNetworkData and ReceiveNetworkData
- Replies: 1
- Views: 407
Buffer size for SendNetworkData and ReceiveNetworkData
What is the theory behind choosing a buffer size to use for sending and receiving data (tcp connections.)
Is there some wisdom in choosing larger or smaller sizes? Right now both my client and server appear to work fine with either 2k or 16k buffers. I'm guessing if I call ReceiveNetworkData with ...
Is there some wisdom in choosing larger or smaller sizes? Right now both my client and server appear to work fine with either 2k or 16k buffers. I'm guessing if I call ReceiveNetworkData with ...
- Thu Jun 08, 2023 4:12 pm
- Forum: Feature Requests and Wishlists
- Topic: EnableExplicit should require type declaration
- Replies: 6
- Views: 4051
Re: EnableExplicit should require type declaration
Really? Well then PB should probably get a "DateQ" library out there ASAP because I'd rather be getting back 8 byte dates.
Anyway it was just an example. But it's also a mystery where other "handles" come from. When I get a handle back for a new network client connection, that handle is an integer ...
Anyway it was just an example. But it's also a mystery where other "handles" come from. When I get a handle back for a new network client connection, that handle is an integer ...
- Thu Jun 08, 2023 3:29 pm
- Forum: Feature Requests and Wishlists
- Topic: EnableExplicit should require type declaration
- Replies: 6
- Views: 4051
Re: EnableExplicit should require type declaration
Yes preserve existing EnableExplicit, just perhaps make a new keyword that would trigger explicit types as well.
Let's have different opinions, but I personally don't like the default type, whether integer or otherwise. And since (apparently) I didn't read the docs well enough early on, I was under ...
Let's have different opinions, but I personally don't like the default type, whether integer or otherwise. And since (apparently) I didn't read the docs well enough early on, I was under ...
- Thu Jun 08, 2023 2:53 am
- Forum: Coding Questions
- Topic: CreateThread Procedure corrupting strings
- Replies: 17
- Views: 2558
Re: CreateThread Procedure corrupting strings
According to the PureBasic.pdf docs (page 358)
A long is ALWAYS 4 bytes
An integer is 4 bytes on 32-bit CPUs and 8 bytes on 64-bit machines
...and the default type is integer, meaning you don't know if it is 4 or 8 bytes (technically) So for all of my handles, I probably should have been using 8 ...
A long is ALWAYS 4 bytes
An integer is 4 bytes on 32-bit CPUs and 8 bytes on 64-bit machines
...and the default type is integer, meaning you don't know if it is 4 or 8 bytes (technically) So for all of my handles, I probably should have been using 8 ...
- Thu Jun 08, 2023 2:48 am
- Forum: Feature Requests and Wishlists
- Topic: EnableExplicit should require type declaration
- Replies: 6
- Views: 4051
EnableExplicit should require type declaration
I understand that EnableExplicit forces the developer to define their variables:
Define foo
...but this is not a definition, there is no type, so it is assumed to be integer. This has caused me to accidentally define types as integers because of typos (forgetting the type)
I'd appreciate an ...
Define foo
...but this is not a definition, there is no type, so it is assumed to be integer. This has caused me to accidentally define types as integers because of typos (forgetting the type)
I'd appreciate an ...
- Thu Jun 08, 2023 2:42 am
- Forum: Coding Questions
- Topic: CreateThread Procedure corrupting strings
- Replies: 17
- Views: 2558
Re: CreateThread Procedure corrupting strings
Awww nuts, stupid question time.
For PureBasic built in library procedures that return "handles" to things, you know databases, images, memory blocks whatever, what data type should I be using? I just realized as I was looking over the docs that I was mistaken about something.
While I'm at it I'll ...
For PureBasic built in library procedures that return "handles" to things, you know databases, images, memory blocks whatever, what data type should I be using? I just realized as I was looking over the docs that I was mistaken about something.
While I'm at it I'll ...