[fpc-pascal] why fpc do not use a known return function value

2015-02-02 Thread misu kun
Hi in this program test function has a known return value , and should be calculated in compile time , but fpc make it in real time !!! - program test; var c : int32; function test( p: int32): int32; inline; var i : int32; begin i := p; test := i+2+c+2+c+2+c; end; begin c:

Re: [fpc-pascal] SDL 2.xx

2015-02-02 Thread Brian
It appears (though I can't find any documentation / forums that actually states this) that SDL 2.03 only allows one event handler. When the event handler (only one handler) is put in a thread , the event can be detected from different windows , those created in the thread and those created in the

Re: [fpc-pascal] DB Access and Multithread

2015-02-02 Thread JB
I work with connection pool, a threaded control to provide avail connections. Best regards, JB José Benedito JBS Soluções Consulting Systems Development c ont...@jbsolucoes.net www.jbsolucoes.net skype: s...@jbsolucoes.net +55 22 30251654 +55 22 996064279 On Mon, Feb 2, 2015 at 6:05 AM, Micha

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

2015-02-02 Thread Michael Schnell
On 01/30/2015 10:36 PM, Michael Van Canneyt wrote: Meanwhile there are now 3 modules that handle the FastCGI protocol: mod_fastcgi, mod_fcgid, mod_proxy_fcgi. Probably the maintainers of mod_fcgid/mod_fastcgi quit, and their successor didn't understand the code, so they wrote a new module :)

Re: [fpc-pascal] DB Access and Multithread

2015-02-02 Thread Michael Schnell
On 01/30/2015 10:56 PM, Fabrício Srdic wrote: Hello, The DB access framework of the fpc is not thread safe. IMHO you should never use the therm thread save in such a generalization. You need do be a lot more specific. I never took a look at "The DB access framework of the fpc", so I can't