RobYost Posted February 19, 2018 Share Posted February 19, 2018 I have had similar errors and received an ajax error within the debugger. Previously it had a very long javascript piece in the message. When I pasted it to a jave script beautifer then into jslint.com it would show where the error was (field name) and I could figure out the problem. But this time all I get is a message in the chrome window: Eventclick, Object: O6C1 not found in session list. It could be timed out, refresh page and try again. How can I debug this? Link to comment Share on other sites More sharing options...
Sherzod Posted February 19, 2018 Share Posted February 19, 2018 Hi, And when does that happen, can you explain a little more ? Best regards, Link to comment Share on other sites More sharing options...
RobYost Posted February 19, 2018 Author Share Posted February 19, 2018 I show a modal form, and when I click OK or Cancel (mrOK and mrCancel) the message pops up. procedure TfrmModal.ShowRecurringCharge(aRecurringCharge: Integer);var aFrame: TfraRecurringCharges;begin aFrame := TfraRecurringCharges.Create(self); try if aRecurringCharge = 0 then frmModal.Caption := 'Create a new scheduled charge' else frmModal.Caption := 'Edit an existing scheduled charge'; frmModal.Height := aFrame.Height + 30; frmModal.Width := aFrame.Width + 12; aFrame.Parent := frmModal; borderstyle := bsToolWindow; borderIcons := [biSystemMenu]; aFrame.AddScheduledCharge(aRecurringCharge); finally aFrame.Free; end;end; procedure TfraRecurringCharges.AddScheduledCharge(aNewChargeID: Integer); .... I commented out all above code (it is just setting defaults on form) .... if (frmModal.ShowModal = mrOK) then begin ....the code in here shouldn't matter because it also happens when I click cancel. .... end; end Link to comment Share on other sites More sharing options...
RobYost Posted February 21, 2018 Author Share Posted February 21, 2018 My real problem is not what is wrong with the code, but why I get an error during the run in the browser, but no error in the IDE? If I got an error on the IDE I think I could fix it. EDIT: I am ignoring NO exceptions in:Tools->Options->Debugger Options->Embarcadero Debuggers->Language Exceptions I also tried both Run Handled and Run Unhandled for Native OS Exceptions Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 22, 2018 Administrators Share Posted February 22, 2018 aFrame.Free; You don't need to Free the frame. It will be destroyed by its owner. Link to comment Share on other sites More sharing options...
RobYost Posted February 22, 2018 Author Share Posted February 22, 2018 It still gives the same error. Do you have any idea why I am not generating an exception within the IDE? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now