Re: [fpc-pascal] SQL show tables

2009-01-13 Thread Joost van der Sluis
Op maandag 12-01-2009 om 13:30 uur [tijdzone -0500], schreef David B Copeland: > "Query: Cannot open a non-select statement" 'show tables' is not a valid sql-statement. It is a MySQL-hack. The TODBCConnection can not see that it is connected to a MySQL server and thus doesn't recognise this state

Re: [fpc-pascal] SQL show tables

2009-01-13 Thread Martin Friebe
Joost van der Sluis wrote: Op maandag 12-01-2009 om 13:30 uur [tijdzone -0500], schreef David B Copeland: "Query: Cannot open a non-select statement" 'show tables' is not a valid sql-statement. It is a MySQL-hack. The TODBCConnection can not see that it is connected to a MySQL server

Re: [fpc-pascal] SQL show tables

2009-01-13 Thread David B Copeland
On Tue, 2009-01-13 at 10:37 +, Martin Friebe wrote: > Joost van der Sluis wrote: > > Op maandag 12-01-2009 om 13:30 uur [tijdzone -0500], schreef David B > > Copeland: > > > > > >> "Query: Cannot open a non-select statement" > >> > > > > 'show tables' is not a valid sql-statement. It

Re: [fpc-pascal] How to allocate a 2D array?

2009-01-13 Thread Arjan van Dijk
Thanks all!This one works!Arjan>He wants 2D dynamic arrays, let's give him one:>type>  TMyArray = array of array of Float;>var>  MyArray: TMyArray;>begin>  SetLength(MyArray,Width,Height); // Valid index now:>[0..Width-1,0..Height-1]>  // Do something with MyArray>  // No deallocation needed, the c

[fpc-pascal] heap size growing

2009-01-13 Thread Seth Grover
I've got a fairly large system (originally written in Delphi, then moved to Kylix, and now finally in FPC 2.2.2) which is doing a lot of different things. Various threads are running which execute reports, communiate with other devices, query data, process notifications, send and receive data on so