Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Bo Berglund
On Tue, 23 Jun 2015 12:07:05 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Bo Berglund wrote: On Mon, 22 Jun 2015 16:43:31 -0300, luiz americo pereira camara luiz...@oi.com.br wrote: In the breakpoint do a step into (f7) and ser the exact line that crashes Luiz In the

[Lazarus] Thread based timer vs TTimer

2015-06-23 Thread Graeme Geldenhuys
Hi, On 2015-06-23 12:30, Michael Schnell wrote: But if this is the recommended way to do timers, why does *any *WidgetType (i.e. TApplication) offer TTimer ? I've done that in fpGUI because not everybody wants to use threads in theire software. So now the developer has a choice. Regards, -

Re: [Lazarus] Thread based timer vs TTimer

2015-06-23 Thread Michael Schnell
On 06/23/2015 01:57 PM, Graeme Geldenhuys wrote: I've done that in fpGUI because not everybody wants to use threads in theire software. So now the developer has a choice. Great ! IMHO a decent TApplication needs support as well for Timers as for Threads, including Application.QueueAsyncCall.

Re: [Lazarus] Thread based timer vs TTimer

2015-06-23 Thread Graeme Geldenhuys
On 2015-06-23 14:35, Michael Schnell wrote: IMHO a decent TApplication needs support as well for Timers as for Threads, including Application.QueueAsyncCall. I don't use TCustomApplication anywhere in fpGUI or my applications. I've also never had the need for QueueAsyncCall(), sorry. ;-)

Re: [Lazarus] Get SQL before TSQLQuery execute

2015-06-23 Thread Michael Van Canneyt
On Tue, 23 Jun 2015, aradeonas wrote: Hi,   I have TSQLQuery that have SQL with parameters and I will set them and execute it but get an error because of a mistake in SQL but I cant find out what so I want to check result SQL after setting parameters but before execute so can check it and

Re: [Lazarus] Invisible Breakpoint

2015-06-23 Thread Martin Frb
On 23/06/2015 16:58, aradeonas wrote: Hi, As old users know there was a problem about breakpoints that after removing or changing code still debugger will stop at an imaginary line. Years ago it seems solved as I read mail list but I have this problem from day one of using Lazarus and my only

[Lazarus] Invisible Breakpoint

2015-06-23 Thread aradeonas
Hi, As old users know there was a problem about breakpoints that after removing or changing code still debugger will stop at an imaginary line. Years ago it seems solved as I read mail list but I have this problem from day one of using Lazarus and my only solution is removing them from breakpoint

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Luca Olivetti
El 23/06/15 a les 17:51, Bo Berglund ha escrit: The problem is most likely in the conversion because even the smallest test application throws an exception on the very first call into the driver, the initialization of the Api data interface array. Or in the calling convention

[Lazarus] Get SQL before TSQLQuery execute

2015-06-23 Thread aradeonas
Hi, I have TSQLQuery that have SQL with parameters and I will set them and execute it but get an error because of a mistake in SQL but I cant find out what so I want to check result SQL after setting parameters but before execute so can check it and fin problem but how can I fin out what query

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Bo Berglund
On Tue, 23 Jun 2015 18:30:46 +0200, Luca Olivetti l...@wetron.es wrote: El 23/06/15 a les 17:51, Bo Berglund ha escrit: The problem is most likely in the conversion because even the smallest test application throws an exception on the very first call into the driver, the initialization of the

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Luca Olivetti
El 23/06/15 a les 20:38, Bo Berglund ha escrit: On Tue, 23 Jun 2015 18:30:46 +0200, Luca Olivetti l...@wetron.es wrote: El 23/06/15 a les 17:51, Bo Berglund ha escrit: The problem is most likely in the conversion because even the smallest test application throws an exception on the very

Re: [Lazarus] Get SQL before TSQLQuery execute

2015-06-23 Thread aradeonas
MySQL and ant its interseting to know what query, application will pass to server. Regards, Ara -- http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow -- ___ Lazarus mailing list

Re: [Lazarus] PowerPDF PDF level

2015-06-23 Thread Jesus Reyes A.
On Tue, 23 Jun 2015 04:57:44 -0500, Marc Santhoff m.santh...@web.de wrote: Hi, can someone please tell me what version of PDF documents PowerPDF supports? The docs in question are mostly 1.4, some rare 1.5, but who knows. TIA, Marc PowerPDF writes 1.2 version documents. Jesus Reyes A.

Re: [Lazarus] Invisible Breakpoint

2015-06-23 Thread aradeonas
Its almost first condition but I removed breakpoint but it debugger think it still there. I will try to to reproduce it,its hard becuse it finds out suddenly but as I understand it mostly happen in other packages not the project. Regards, Ara -- http://www.fastmail.com - Does exactly what it

Re: [Lazarus] Get SQL before TSQLQuery execute

2015-06-23 Thread aradeonas
I checked that but SQL is parameter and not with values for example like this: INSERT INTO table1 values(:id,:name); but I set parameter values and I looking for something like this: INSERT INTO table1 values(1,'Book'); Regards, Ara -- http://www.fastmail.com - mmm... Fastmail... --

Re: [Lazarus] Get SQL before TSQLQuery execute

2015-06-23 Thread Graeme Geldenhuys
On 2015-06-23 17:33, aradeonas wrote: I couldn't find any event or checking call stack don't reach me to result. You don't mention the database system you use. eg: if you use MS SQL Server, Oracle, Firebird, PostgreSQL you can run trace or profilers on the server end and see exactly what is

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread luiz americo pereira camara
Take a look at https://msdn.microsoft.com/pl-pl/library/vstudio/7dz62kfh(v=vs.110).aspx (it suggests a cvtres.exe tool) Ask to fpc guru if is possible to use manually an different linker like http://www.digitalmars.com/ctg/optlink.html In the end, i would try to compile a delphi dll and access

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Graeme Geldenhuys
On 2015-06-23 16:51, Bo Berglund wrote: No matter what I try there are exceptions generated... :( It would have been nice if FPC could accept linking with a regular OBJ file so I did not have to convert it. You might be better off moving this discussion to the fpc-users mailing list. I

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Mon, 22 Jun 2015 16:43:31 -0300, luiz americo pereira camara luiz...@oi.com.br wrote: In the breakpoint do a step into (f7) and ser the exact line that crashes Luiz In the pas unit this is the exact line that crashes: returnVal := RNBOsproFormatPacket (ApiPacket,

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Michael Schnell
On 06/23/2015 01:35 PM, patspiper wrote: Pls don't hijack the thread with your never ending NoGui discussions. Sorry. But for somebody coming from Delphi it is likely confusing that a NoGUI application needs to be done completely different than an Application that does have a GUI, so I

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Bo Berglund
On Mon, 22 Jun 2015 16:43:31 -0300, luiz americo pereira camara luiz...@oi.com.br wrote: In the breakpoint do a step into (f7) and ser the exact line that crashes Luiz In the pas unit this is the exact line that crashes: returnVal := RNBOsproFormatPacket (ApiPacket, RB_SPRO_APIPACKET_SIZE);

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Michael Schnell
On 06/23/2015 10:43 AM, Graeme Geldenhuys wrote: File-New Console Application That creates a Console application - thus no dependenies on GUI toolkits. And not support for things like TTimer, Application.QueuAsyncCall, Support for TThread.Queue and TThread.Synchronize needs to be provided by

[Lazarus] PowerPDF PDF level

2015-06-23 Thread Marc Santhoff
Hi, can someone please tell me what version of PDF documents PowerPDF supports? The docs in question are mostly 1.4, some rare 1.5, but who knows. TIA, Marc -- Marc Santhoff m.santh...@web.de -- ___ Lazarus mailing list

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Graeme Geldenhuys
On 2015-06-22 17:14, Bo Berglund wrote: I tried to do what you proposed: File-New Console Application That creates a Console application - thus no dependenies on GUI toolkits. sentinel.pas(14,3) Fatal: Cannot find unit ExtCtrls used by Sentinel. Check if package LCLBase is in the

Re: [Lazarus] Embedded Firebird bundled with OSX application

2015-06-23 Thread Graeme Geldenhuys
On 2015-06-22 18:46, Dmitry Boyarintsev wrote: Just Frameworks directory needs to be created, within Contents directory. Put firebird framework/dynamic library there and that's it. Yes and no - according to all the blog posts I've read. The required embedded library is missing from the

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Michael Schnell
On 06/23/2015 12:51 PM, Graeme Geldenhuys wrote: Not to rehash an old topic... Maybe that is true for TTimer, but it took me all of 10 minutes to implement a multi-threaded console application and implementing a TThread based timer from scratch. All working just fine under FreeBSD. So I really

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Michael Van Canneyt
On Tue, 23 Jun 2015, Graeme Geldenhuys wrote: On 2015-06-23 10:45, Michael Schnell wrote: And not support for things like TTimer Not to rehash an old topic... Maybe that is true for TTimer, but it took me all of 10 minutes to implement a multi-threaded console application and implementing

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Michael Schnell
On 06/23/2015 01:26 PM, Michael Van Canneyt wrote: Ehm. fpTimer contains just that, it exists since years. This of course is a well known fact.. But if this is the recommended way to do timers, why does *any *WidgetType (i.e. TApplication) offer TTimer ? -Michael --

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread patspiper
On 23/06/15 14:30, Michael Schnell wrote: On 06/23/2015 01:26 PM, Michael Van Canneyt wrote: Ehm. fpTimer contains just that, it exists since years. This of course is a well known fact.. But if this is the recommended way to do timers, why does *any *WidgetType (i.e. TApplication) offer

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Graeme Geldenhuys
On 2015-06-23 10:45, Michael Schnell wrote: And not support for things like TTimer Not to rehash an old topic... Maybe that is true for TTimer, but it took me all of 10 minutes to implement a multi-threaded console application and implementing a TThread based timer from scratch. All working just

Re: [Lazarus] PowerPDF PDF level

2015-06-23 Thread Marc Santhoff
On Di, 2015-06-23 at 14:25 -0500, Jesus Reyes A. wrote: On Tue, 23 Jun 2015 04:57:44 -0500, Marc Santhoff m.santh...@web.de wrote: Hi, can someone please tell me what version of PDF documents PowerPDF supports? The docs in question are mostly 1.4, some rare 1.5, but who knows.