Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-01-30 Thread silvioprog
On Fri, Jan 30, 2015 at 4:46 AM, Michael Van Canneyt mich...@freepascal.org wrote: On Thu, 29 Jan 2015, silvioprog wrote: Hello, Using the TCustomHTTPApplication class, I just set the Threaded property to true, and my application works in threaded mode. But, how to do the same in

Re: [fpc-pascal] Is Path_Info available in FastCGI working as proxy?

2015-01-30 Thread silvioprog
On Fri, Jan 30, 2015 at 11:07 AM, Michael Van Canneyt mich...@freepascal.org wrote: On Fri, 30 Jan 2015, silvioprog wrote: On Thu, Jan 29, 2015 at 7:28 PM, silvioprog silviop...@gmail.com wrote: On Thu, Jan 29, 2015 at 6:58 PM, Michael Van Canneyt mich...@freepascal.org wrote:

Re: [fpc-pascal] [PATCH] Add the CreateCGIParams/FreeCGIParams methods in FCL FCGI

2015-01-30 Thread silvioprog
On Fri, Jan 30, 2015 at 4:39 AM, Michael Van Canneyt mich...@freepascal.org wrote: On Thu, 29 Jan 2015, silvioprog wrote: On Thu, Jan 29, 2015 at 7:26 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Thu, 29 Jan 2015, silvioprog wrote: Hello,

Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-01-30 Thread silvioprog
On Fri, Jan 30, 2015 at 11:01 AM, Michael Van Canneyt mich...@freepascal.org wrote: On Fri, 30 Jan 2015, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Am I wrong thinking, that using proxy FCGI projects are a lot easier to manage, anyway, as here you can use

Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-01-30 Thread silvioprog
On Fri, Jan 30, 2015 at 8:57 AM, Michael Van Canneyt mich...@freepascal.org wrote: On Fri, 30 Jan 2015, Michael Schnell wrote: On 01/30/2015 08:46 AM, Michael Van Canneyt wrote: Only if you use proxy fastcgi (i.e. a separately running binary listening on a fixed port, not started in

Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-01-30 Thread Michael Van Canneyt
On Fri, 30 Jan 2015, silvioprog wrote: Yes! ... On Fri, Jan 30, 2015 at 12:56 PM, silvioprog silviop...@gmail.com wrote: On Fri, Jan 30, 2015 at 4:46 AM, Michael Van Canneyt mich...@freepascal.org wrote: [...]  Do you know if FastCGI proxy accepts a multi-thread structure?

Re: [fpc-pascal] DB Access and Multithread

2015-01-30 Thread Michael Van Canneyt
On Fri, 30 Jan 2015, Fabrício Srdic wrote: Hello, The DB access framework of the fpc is not thread safe. So, how can i build a multithreaded application that requires access to database? Create 1 connection per thread. Do not share connections (and datasets connected to it) over

[fpc-pascal] SDL 2.xx

2015-01-30 Thread Brian
I currently have an application running under Ubuntu 14.04 using SDL 2.03 and have a few questions . Currently the window / rendering / event handler are running in a thread , not the main program. This works fine as long as the window is initiated (created) in the thread , and the rendering /

Re: [fpc-pascal] Cross-compile vs native

2015-01-30 Thread fredvs
You may also install Lazarus.exe via wine. With the SeupLazarus.exe, it install fpc.exe too ;-) - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Cross-compile-vs-native-tp5720834p5720891.html Sent from the Free Pascal - General mailing

[fpc-pascal] DB Access and Multithread

2015-01-30 Thread Fabrício Srdic
Hello, The DB access framework of the fpc is not thread safe. So, how can i build a multithreaded application that requires access to database? If each one of my threads use its own set of DB access components, that is, don´t share any instance of db access components, this can be a secure

Re: [fpc-pascal] Is Path_Info available in FastCGI working as proxy?

2015-01-30 Thread Michael Van Canneyt
On Fri, 30 Jan 2015, silvioprog wrote: On Thu, Jan 29, 2015 at 7:28 PM, silvioprog silviop...@gmail.com wrote: On Thu, Jan 29, 2015 at 6:58 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Thu, 29 Jan 2015, silvioprog wrote: Hello,

Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-01-30 Thread Michael Van Canneyt
On Fri, 30 Jan 2015, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Am I wrong thinking, that using proxy FCGI projects are a lot easier to manage, anyway, as here you can use normal debugging means (e.g. Lazarus) ? Not really. On windows they must be

Re: [fpc-pascal] SCGI in Pascal?

2015-01-30 Thread Michael Van Canneyt
On Fri, 30 Jan 2015, silvioprog wrote: If you provide an initial implementation, I will be glad to add it to fcl-web. Awesome. I started it. =) Maybe it take a while because my chronic lack of time, but I've created an environment to implement it. We all suffer from chronic lack

Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-01-30 Thread Michael Schnell
On 01/30/2015 08:46 AM, Michael Van Canneyt wrote: Only if you use proxy fastcgi (i.e. a separately running binary listening on a fixed port, not started in Apache), then threading may be useful. Am I wrong thinking, that using proxy FCGI projects are a lot easier to manage, anyway, as

Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-01-30 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: Am I wrong thinking, that using proxy FCGI projects are a lot easier to manage, anyway, as here you can use normal debugging means (e.g. Lazarus) ? Not really. On windows they must be service programs, which are an absolute horror to

Re: [fpc-pascal] SCGI in Pascal?

2015-01-30 Thread silvioprog
On Thu, Jan 29, 2015 at 7:27 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Thu, 29 Jan 2015, silvioprog wrote: On Tue, Jan 27, 2015 at 12:58 PM, Michael Van Canneyt mich...@freepascal.org wrote: [...] The same can be done with FastCGI if you use mod_fastcgi and

Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-01-30 Thread Michael Van Canneyt
On Fri, 30 Jan 2015, Michael Schnell wrote: On 01/30/2015 08:46 AM, Michael Van Canneyt wrote: Only if you use proxy fastcgi (i.e. a separately running binary listening on a fixed port, not started in Apache), then threading may be useful. Am I wrong thinking, that using proxy FCGI