Recent

Author Topic: Changes in fcl dont working  (Read 2903 times)

neobrasil08

  • New Member
  • *
  • Posts: 15
Changes in fcl dont working
« on: January 11, 2011, 12:44:26 pm »
Hello friends developers

I have an problem with my port of ADS components (Advantage TDataset Descendent)

On set property Indexname or property IndexFieldnames  of TAdsTable component,  return the follow message:

Error 5021: The pointer given was not valid. Parameter 2

Following the source code, i discover where are the problem.

The error break execution on call Resync procedure

The Resync procedure stay on dataset.inc file, include in db.pas file, on fcl-db fpc directory.

Then, i add an logdb procedure to investigate the error message.

In db.pas, i add the follow code:

procedure Logdb(const aMsg:String);
...
Implementation
...
procedure Logdb(const aMsg:String);
var
  loghandle:textfile;
  LogFileName:string;
begin
  LogFileName:='c:\logdb.txt';
  AssignFile(loghandle,LogFileName);
  if FileExists(LogFileName) then
    Append(loghandle)
  else
    Rewrite(loghandle);
  WriteLn(loghandle,TimeToStr(Time)+': '+aMsg);
  CloseFile(loghandle);
end;

My question is:

On lazarus ide edit code, the logdb is listed, exists.
But on compile the code, return the error message:

Identifier not found "Logdb"

What  the problem?

I recompiled the fcl, with the follow commands on the prompt:

cd  c:\lazarus\fpc\2.4.0\source\packages



.\..\bin\i386-win32\make clean all install INSTALL_PREFIX=c:\lazarus\fpc\2.4.0


And Re-build Lazarus after. (Clean up + Buid all)

And nothing, the logdb is ignored, one estrange on code :-)

Very Mysterious to me.

This error affect all versions of ADS components (Advantage TDataset Descendent), including the oficial port 10.0 of Sybase

Thans for any help.

Isaac

Add in 12/01/2010

Solved, i found the compiled files, but in a unexpected place. The bellow command make a subdir named lazarusfpc2.4.0 in same directory and save the compiled files into.
Question:
What the sintaxe of make utilit to inform the correct place to compiled files?
Thanks again
Sorry my bad bad bad english

« Last Edit: January 13, 2011, 01:29:56 am by neobrasil08 »

 

TinyPortal © 2005-2018