Local cache cleanup / App reload from code

0
0

I am facing strange error sometimes in the Wisej app. Framework version 3.5.22

I get following error (see attached screenshot) ,

An unexpected error occurred GH: Unknown function: updateChildZOrder at

Wisej.Web.Application.ProcessCallbackWebEvent(Wi sejEventArgs e) at

Wisej.Web.Application.ProcessWebEvent(WisejEvent

Args e)

The workaround to fix this is to clear browser cache and reload, than app starts to work OK.

Is there any option (I am thinking about logout) that can be used to programatically clean up local storage cache from code and trigger app reload ?

Attachment
  • You must to post comments
0
0

Hi,

this started to manifest itself after migration from wisej 3.5.12 to 3.5.22., on older wisej version app worked without this error ever popping out.

last time this error manifested was after app was idle for some time so I suspect that it could also be the case when web socket connection was dropped.

strangely enough, application.exit() is helping remedy this error after it occures, or manual cleanup of browser cache for app domain.

  • You must to post comments
0
0

Hi Dino,

The error you see is a symptom of a wrong call to Application.Update() or handling a static event without updating the context.
So you might scan your application for any of these.
The browser cache has nothing to do with it.
Best regards
Frank
  • Dino Novak
    Hi Frank, io amable to intercept this error using Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException); so I am able to get following log: 2025-09-08 15:50:12.281 [ERR] Error: Unknown function: updateChildZOrder : at Wisej.Web.Application.ProcessCallbackWebEvent(WisejEventArgs e) at Wisej.Web.Application.ProcessWebEvent(WisejEventArgs e) at Wisej.Web.Application.OnWebEvent(WisejEventArgs e) at Wisej.Web.Application.Wisej.Core.IWisejComponent.Event(WisejEventArgs e) at Wisej.Core.ComponentManager.DispatchEvents(Session session, Object[] events) at Wisej.Core.ResponseManager.c__DisplayClass29_0.b__0() at Wisej.Core.IWisejSynchronizedImplementation.Lock(IWisejSynchronized target, Action action) at Wisej.Core.ResponseManager.ProcessRequest(ServiceType service, Object message) I there a way to extract which part of the code triggered this error (which window / procedure) ?
  • Luca
    • Luca
    • Sep 9, 2025 - 2:36 pm
    It’s a callback from the browser, which means that there was a call to updateChildZOrder() on the wrong control which most likely means that a session is being updated out of context from another session. Check if you have any static event or any Application.Update() pushing an update.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.