Jump to content

Object x not found in session list. it could be timed out, refresh page and try again....


erich.wanker

Recommended Posts

I get - if i move the mouse over controls - the Error: 

 

Object O72B not found in session list. it could be timed out, refresh page and try again....

 

 

 

 

Hello,

 

i have a problem:

 

i create one unipanel named: mainmenupanel

i create lot of unipanels named menupoint_x  at runtime - parent:= mainmenupanel

 

 

every menupoint-panel becomes Javascripts: 

procedure TUniMainModule.funktion_panel_hoover_dunkelgrau_zu_grau(was:TUniPanel);
begin
   was.Cursor:=crHandPoint;
   was.ClientEvents.ExtEvents.Add
      ('OnAfterrender=function OnAfterrender(sender)'+
      ' {  sender.setBodyStyle("background-color:'+ColorToHtml(dunkelgrau)+'"); }');
   was.ClientEvents.ExtEvents.Add
      ('OnMouseout=function Onmouseout(sender)'+
      ' { sender.body.applyStyles("background-color:'+ColorToHtml(dunkelgrau)+'"); }');
   was.ClientEvents.ExtEvents.Add
      ('Onmouseover=function Onmouseover(sender)'+
      ' {sender.body.applyStyles("background-color:'+ColorToHtml(grau)+'"); }');
end;

and every menupoint-panel becomes onmouseclick:

menupoint_x.OnMouseEnter :=meinMouseEnter;
menupoint_x.OnMouseLeave :=meinMouseLeave;
menupoint_xl.OnClick     :=meinOnClick;

situation:

 

if i click on a menupoint-panel the following steps are:

 

  • mainmenupanel. free
  • meinmenupanel.create
  • create new menupoint-panels depending on what was clicked...

i think: if i move the mouse after clicking over the mainmenupanel, some still visible menupoint-panels are fireing the onMouseover Event - but the "free" killed all panels, so the error comes

 

 

 

 

 

 

and the same situation in another case:

 

Mainform has one panel

 

Project has 2 Uniframes - the 2 Uniframes are create per:

procedure TMainForm.InsertFrame1(Name: string;wo:TuniPanel);
begin
  if FFrameName1=Name then Exit;
    FFrameName1:=Name;
    FreeAndNil(FCurrentFrame1);
    FCurrentFrame1:=TUniFrameClass(FindClass(Name)).Create(self);
    FCurrentFrame1.Align:=alClient;
    FCurrentFrame1.Parent:=wo;
end;
in uniframe2 i call  "MainForm.InsertFrame1('tUniFrame1',MainForm.panel_main);" to display uniframe1 
 
uniframe2 has also javascripts - and sometimes i get Error: "Object O72B not found in session list. it could be timed out, refresh page and try again...."

 

 

 

how can i fix this ?

 

any suggestions ?

 

 

 

Thank you

 

Erich

 

 

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...