[bug_fixed] ERangeError after FormCreate

In this forum all bug reports concerning the 6.x branch will be gahtered. You have the possibility to track the bug fix process.

Moderators: EgonHugeist, mdaems

dseichter
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 12.12.2005, 14:57

[bug_fixed] ERangeError after FormCreate

Postby dseichter » 13.11.2006, 14:40

Hello,

after I updated my BDS2006 from zeos 6.5.1 to 6.60beta I everytime receive an ERangeError, after the CreateForm procedure of the mainform was executed.
The only debug info I am able to understand was the

Code: Select all

function TZPostgreSQL8PlainDriver.DecodeBYTEA(value: string): string;
var decoded,dest:pchar;
    len:Longword;
    von,nach:string;
begin
  decoded:=ZPlainPostgreSql8.PQunescapeBytea(pansichar(value),@len);
  SetLength(result,len);
  dest:=pchar(result);
  Move(decoded^,result[1],len); (***)
  ZPlainPostgreSql8.PQFreemem(decoded);
end;


in ZPlainPostgreSqlDriver.pas. The debugger holds in the line marked with (***).

What can be a solution for this error, because I don't want to suppress the ERangeError message.
But I didn't find anything else, which is not working, so the message does not affect the program.

Thanks
Daniel

User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Postby mdaems » 13.11.2006, 15:38

Try to replace the line with the stars with

Code: Select all

  if (len > 0) then Move(decoded^,result[1],len);

It is fixed already in the SVN Trunk version. So in next release this will be OK.
Plse let us know if we can close this report.

Mark

dseichter
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 12.12.2005, 14:57

Postby dseichter » 13.11.2006, 16:29

Hello Mark,

thank you for the line of code. Now it works fine and the ERangeError not happened again.

Daniel

dseichter
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 12.12.2005, 14:57

Postby dseichter » 13.11.2006, 17:00

btw, is there a chance to find the SVN Trunk version package? Maybe my other error has already been fixed there?

User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Postby mdaems » 14.11.2006, 09:53

For the moment the only way is using SVN : see Tutorials forum for details.
Intermediary beta releases are not yet scheduled as we hope to keep beta period short.

Mark

dseichter
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 12.12.2005, 14:57

Postby dseichter » 14.11.2006, 13:07

Thank you for your answer. I will take a look to this tutorial, so maybe I can test the newest build to determine the problems within my other thread about M$ Access.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest