Has anyone ever had an “Unhandled OutOfBoundsException” error with the web 1 framework (Xojo 2019 3.2) under obscure circumstances?
This error comes with “RuntimeLockUnlockObjects”. What does it mean?
I never see this error when I run my project from the IDE in debug. But it happens in production when the project is compiled and run on my server (Standalone, Apache, Windows server).
However, I don’t use an array in my code when this error is triggered (unfortunately the error is not systematically triggered, it is rarely triggered, I can’t figure out under which circumstances).
My app is 100% custom controls (WebControlWrapper).
The error seems to occur more often since I build the app in 64 bits.
Looking deeper into where I might use arrays at the time the error is triggered, I see that the “WEtitre” control is part of an array of webControlWrapper controls, but these controls are all present as soon as the app is launched in the browser and are often already in use without issue before the error is triggered. The only other place where an array index is used is in the webControlWrapper’s “SetupCSS” event handler:
Stack: RuntimeRaiseException RaiseOutOfBoundsException RuntimeLockUnlockObjects fenAction.F125action%%o<fenAction>A1v pgMaster.pgMaster.WEtitre_click%%o<pgMaster.pgMaster>o<WEclasseTitre>A1v Delegate.IM_Invoke%%o<WEclasseTitre>A1v AddHandler.Stub.37%%A1v WEclasseTitre.Event_ExecuteEvent%b%o<WEclasseTitre>sA1v WebControlWrapper._ExecuteEvent%b%o<WebControlWrapper>sA1v WebControl.!_ExecuteEvent%b%ssA1v WebSession._HandleEvent%%o<WebSession>so<_HTTPServer.HTTPRequestContext> WebSession._HandleRequest%i8%o<WebSession>so<_HTTPServer.HTTPRequestContext> WebApplication._HandleHTTPRequest%%o<WebApplication>o<_HTTPServer.HTTPRequestContext> _HTTPServer.HTTPRequestThread.Event_Run%%o<_HTTPServer.HTTPRequestThread>```