RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

2011-10-23 Thread Ludo Brands
But now I get a new error Cannot open a non-select statement o.O Other than the superfluous ';', I don't see anything that could cause this problem. What is your fcl-db version? Ludo ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

RE : [fpc-pascal] Re: How to insert a record and get the primary keywith sqldb?

2011-10-23 Thread Ludo Brands
This code: SQLGameSession := TSQLQuery.Create(nil); SQLGameSession.Transaction := DBComm.SQLTransaction; SQLGameSession.Database := DBComm.PQConnection; SQLGameSession.FieldDefs.Add('SessionId', ftLargeint); SQLGameSession.FieldDefs.Add('GameEvent', ftLargeint);

Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

2011-10-23 Thread Felipe Monteiro de Carvalho
Hello, 3On Sun, Oct 23, 2011 at 11:12 AM, Ludo Brands ludo.bra...@free.fr wrote: Other than the superfluous ';', I don't see anything that could cause this problem. What is your fcl-db version? Removing the ; also didn't help ... I'm starting to think that it really must be my fpc version, I

Re: [fpc-pascal] FPC has multiple HTTP server components

2011-10-23 Thread Michael Van Canneyt
On Sun, 23 Oct 2011, Graeme Geldenhuys wrote: Hi, I was looking through the FCL code and noticed that there seems to be more than one HTTP server component. What is the difference between them, and which one would be the better option as the basis for a HTTP based n-tier application server

Re: [fpc-pascal] FPC has multiple HTTP server components

2011-10-23 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: fcl-net/src/httpsvlt.pp(THTTPServer component) This one is deprecated. It was originally developed to create servlets for XML-RPC. I will remove it. deprecate it first, then we'll merge the deprecation to 2.6.0, and people have a

Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

2011-10-23 Thread Felipe Monteiro de Carvalho
Hello, Ok, I figured it out =D The cannot open non-select error was not for that line! It was for something else afterwards =D I can get the next primary key correctly now =D I am writing a CGI WebServer, so I haven't yet managed to get Lazarus step-by-step debugging to work (not sure if it is

Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

2011-10-23 Thread Michael Van Canneyt
On Sun, 23 Oct 2011, Felipe Monteiro de Carvalho wrote: Hello, Ok, I figured it out =D The cannot open non-select error was not for that line! It was for something else afterwards =D I can get the next primary key correctly now =D I am writing a CGI WebServer, so I haven't yet managed to

Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

2011-10-23 Thread Graeme Geldenhuys
On 23/10/2011, Felipe Monteiro de Carvalho wrote: I am writing a CGI WebServer, so I haven't yet managed to get Lazarus step-by-step debugging to work (not sure if it is possible with CGI), so that's what caused so much confusion for me You can't do that. You have to use an embedded web

Re: [fpc-pascal] How are Assigned, Free, Nil and Destroy related?

2011-10-23 Thread Frank Peelo
On 22/10/11 10:01, Mark Morgan Lloyd wrote: Felipe Monteiro de Carvalho wrote: Free is how you release the memory allocated for a object. Free calls Destroy. Never call Destroy manually. When you implement the destructor you always implement Destroy, never change Free. A number of years ago,

Re: [fpc-pascal] How are Assigned, Free, Nil and Destroy related?

2011-10-23 Thread Ralf A. Quint
At 11:52 AM 10/23/2011, Frank Peelo wrote: If I recall corerctly, that Modula-2 value for nil was the address the 8086 jumped to when released from RESET. So jumping through a pointer with value nil would be something you would notice pretty much immediately. Certainly not. Modula-2 was/is