Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Crash in IWForm.FillRealTabOrder - every 2-3 clicks
#6
(07-02-2020, 07:11 AM)Alexandre Machado Wrote: Please enable the exception logger in your application and we can have more information about it:

http://docs.atozed.com/docs.dll/developm...ogger.html

Hello, here the last logs again, i has shrinked all what i can to isolate the error.
But it stucks at: IWCompExtCtrls.TIWCustomImage.get_HasTabOrder

http://www.vsoft.de/aw/AW_TrackAndTrace@2020-07-02 15-27-08.6471.Log
http://www.vsoft.de/aw/AW_TrackAndTrace@2020-07-02 15-28-39.0821.Log

This code snippet is the part which generate per IWGrid.Cell a TIWImageFile (so it looks better)
Without this all works fine. With Parent=IntraWebServer hangs completly up ..
But i think it has todo with the TabOrder - the Error logs and the CPU Stacktrace are looking all in the same direction (for me)...
Code:
  procedure SetCellLinkIcon(oCell:TIwGridCell;sImg:String;sHint:String;oEvent:TIWAsyncEvent;sParams:String);
  var
    oLink:TIWImageFile;
  begin
    oLink := TIWImageFile.Create(IWGrid_Dispo);
    //oLink.Parent := TWinControl(IWGrid_Dispo);
    if(sParams<>'')then
    begin
      oLink.Css := 'ImageLink';
    end else
    begin
      oLink.Css := 'ImageLinkForbidden';
    end;
    oLink.Cacheable := true;
    oLink.AutoSize := false;
    oLink.ImageFile.URL := '/'+sImg;
    //oLink.Height := iIconDim;
    //oLink.Width := iIconDim;
    oLink.Hint := sHint;
    oLink.ExtraTagParams.Text := sParams;
    oLink.ShowHint := (sHint<>'');
    oLink.OnAsyncClick := oEvent;
    oLink.TabOrder := -1;
    oCell.Control := oLink;
  end;

for clear (because another search in the DB can bring other results in the grid i use:
Code:
    for i := IWGrid_Dispo.ComponentCount-1 downto 0 do
    begin
      IWGrid_Dispo.Components[i].Free;
    end;
and my logs says: okay every component gets usually the free.

Hope this will help you for improve/finding the bug.
Reply


Messages In This Thread
RE: Crash in IWForm.FillRealTabOrder - every 2-3 clicks - by Victoria - 07-02-2020, 01:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)