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 lis

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 threads.

[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 worka

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 wrote: On Fri, Jan 30, 2015 at 4:46 AM, Michael Van Canneyt wrote: [...]  Do you know if FastCGI proxy accepts a multi-thread structure? "answered Jan 10 '14 at 5:42 [UKIvb.jpg?s=32

[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 / ev

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

2015-01-30 Thread Brian
Thanks for all the suggestions. I rather like Fred's method using Linux / Wine , and after getting it working under Wine , I would do an end test native on on a Windows PC. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Cross-compile-vs-native-tp5720834p5720

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

2015-01-30 Thread silvioprog
Yes! ... On Fri, Jan 30, 2015 at 12:56 PM, silvioprog 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? > "answered Jan 10 '14 at 5:42

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

2015-01-30 Thread Michael Van Canneyt
On Fri, 30 Jan 2015, silvioprog wrote: But if you are on a headless server, then a windows service is the only really viable way. You can start messing with run entries in the registry, but the problem remains the same: the app must be running when the webserver starts. Be

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

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 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 Apache), then

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 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 TCustomFCgiApplic

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 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 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, >> >> Please see

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] 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 wrote: On Thu, Jan 29, 2015 at 6:58 PM, Michael Van Canneyt wrote: On Thu, 29 Jan 2015, silvioprog wrote: Hello, I've the same problem in Apache and ngin

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 ser

Re: [fpc-pascal] SCGI in Pascal?

2015-01-30 Thread silvioprog
On Thu, Jan 29, 2015 at 7:27 PM, Michael Van Canneyt 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 >> ExternalFastCGISer

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

2015-01-30 Thread silvioprog
On Thu, Jan 29, 2015 at 7:28 PM, silvioprog 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, >>> >>> I've the same problem in Apache and nginx: TRequest.PathInfo always >>> returns an empty

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 ho

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

2015-01-30 Thread Michael Schnell
On 01/30/2015 12:57 PM, Michael Van Canneyt wrote: On windows they must be service programs, which are an absolute horror to debug. Yep ;-) . To do such a thing on Windows (IIS) with Delphi, my (not Linux expert) colleagues very successfully created a simple "ISAPI" CGI that uses a bidirect

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" proj

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 he