Forum > Windows (32/64)

Lazarus 2.2.0: Major installation issues

<< < (3/3)

wmeyer:

--- Quote from: JuhaManninen on January 07, 2022, 11:10:15 pm ---If this code line gave an error

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---if NullPtr^ = 0 then // on this line
then the message makes no sense as 0 is an integer, not a boolean.

--- End quote ---

Made no sense to me, either. I just report what I see.

Jurassic Pork:
Hello,

--- Quote from: wmeyer on January 07, 2022, 11:37:08 pm ---
--- Quote from: JuhaManninen on January 07, 2022, 11:10:15 pm ---If this code line gave an error

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---if NullPtr^ = 0 then // on this line
then the message makes no sense as 0 is an integer, not a boolean.

--- End quote ---

Made no sense to me, either. I just report what I see.

--- End quote ---

it seems that you haven't the last version of Zeos 7.2.14 (may be you have the 7.2.12 or 7.2.10 version)

in version 7.2.14 of ZdbcCache.pas :

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TZRowAccessor.SetDataSet(ColumnIndex: Integer; const Value: IZDataSet);var  Ptr: PPointer;  NullPtr: PByte;begin{$R-}{$IFNDEF DISABLE_CHECKING}  CheckColumnIndex(ColumnIndex);  if not (FColumnTypes[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}] = stDataSet) then begin    raise EZSQLException.Create(      Format(SCanNotAccessBlobRecord,      [ColumnIndex, DefineColumnTypeName(FColumnTypes[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}])]));  end;{$ENDIF}   Ptr := PPointer(@FBuffer.Columns[FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}] + 1]);  NullPtr := PByte(@FBuffer.Columns[FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}]]);  {$IFDEF RangeCheckEnabled}{$R+}{$ENDIF}   if NullPtr^ = 0 then    IZDataSet(Ptr^) := nil  else    Ptr^ := nil;
in version 7.2.12 :

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TZRowAccessor.SetDataSet(ColumnIndex: Integer; const Value: IZDataSet);var  Ptr: PPointer;  NullPtr: {$IFDEF WIN64}PBoolean{$ELSE}PByte{$ENDIF};begin{$R-}{$IFNDEF DISABLE_CHECKING}  CheckColumnIndex(ColumnIndex);  if not (FColumnTypes[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}] = stDataSet) then begin    raise EZSQLException.Create(      Format(SCanNotAccessBlobRecord,      [ColumnIndex, DefineColumnTypeName(FColumnTypes[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}])]));  end;{$ENDIF}   Ptr := PPointer(@FBuffer.Columns[FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}] + 1]);  NullPtr := {$IFDEF WIN64}PBoolean{$ELSE}PByte{$ENDIF}(@FBuffer.Columns[FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}]]);  {$IFDEF RangeCheckEnabled}{$R+}{$ENDIF}   {$IFNDEF FPC}  if NullPtr^ = {$IFDEF WIN64}false{$ELSE}0{$ENDIF} then  //M.A. if NullPtr^ = 0 then  {$ELSE}  if NullPtr^ = 0 then  {$ENDIF}    IZDataSet(Ptr^) := nil  else    Ptr^ := nil;
NullPtr is a PBoolean if you compile on Win64 in this version (no condition on FPC)

Friendly, J.P

wmeyer:

--- Quote ---it seems that you haven't the last version of Zeos 7.2.14 (may be you have the 7.2.12 or 7.2.10 version)
--- End quote ---

Not any more! Ripping away folders -- including the AppData\Local\lazarus folder -- then re-installing seems to have eliminated the oddities.

And for what it is worth to anyone here, LazProfiler seems to have issues. Being very cautious in installing things, even to the extent of installing dependencies one by one, and LazProfiler made problems when I installed it.

dsiders:

--- Quote from: wmeyer on January 08, 2022, 07:19:36 pm ---
--- Quote ---it seems that you haven't the last version of Zeos 7.2.14 (may be you have the 7.2.12 or 7.2.10 version)
--- End quote ---

Not any more! Ripping away folders -- including the AppData\Local\lazarus folder -- then re-installing seems to have eliminated the oddities.

And for what it is worth to anyone here, LazProfiler seems to have issues. Being very cautious in installing things, even to the extent of installing dependencies one by one, and LazProfiler made problems when I installed it.

--- End quote ---

I've had issues when installing things from OPM that were previously installed in another non-per-user location, and vice-versa. Was that your issue? Or is something actually broken with LazProfiler?

Navigation

[0] Message Index

[*] Previous page

Go to full version