Re: [fpc-pascal] JSON Parser to tree view

2014-09-27 Thread wollepatong
Small enhancement for the jsonviewer: In mainform, OnShow change the code to: - procedure TMainForm.FormShow(Sender: TObject); begin if (Paramcount 0) then try OpenFile(ParamStr(1)); exit; except

Re: [fpc-pascal] DLL calling Firebird: slow and crashes at the end

2014-09-27 Thread Reinier Olislagers
On 26/09/2014 21:41, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: If using pchars: is the program doing all storage allocation for these or is the DLL also allocating memory? The DLL is generating those pchars. What frees them? Heh ;) Ok, I think I've got it worked out now: calling

Re: [fpc-pascal] DLL calling Firebird: slow and crashes at the end

2014-09-27 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 26/09/2014 21:41, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: If using pchars: is the program doing all storage allocation for these or is the DLL also allocating memory? The DLL is generating those pchars. What frees them? Heh ;) Ok, I think I've got it