NilObjectException how to investigate further

On windows I’m getting a NilObjectException in a certain situation.
On Mac everything works fine.

Unfortunately Xojo isn’t showing anything in debug mode when the exception occurs (blank investigator…).

This is the stack trace I’m getting in App.UnhandledException:

[code]Type:
NilObjectException

Stacktrace:
RuntimeRaiseException
RaiseNilObjectException
Delegate.IM_Invoke%%
Xojo.Core._CallLaterTimer.Event_Action%%o<Xojo.Core._CallLaterTimer>
XojoLocaleGetDecimalSeparator
EnumChildWindows
DispatchMessageW
enableMenuItems
Application._CallFunctionWithExceptionHandling%%op
enableMenuItems
RuntimeRun
REALbasic._RuntimeRun
_Main
wWinMain
__tmainCRTStartup
BaseThreadInitThunk
RtlUserThreadStart[/code]

Any ideas how to investigate it further?

A weak delegate where the target object got destroyed?
Maybe try a non weak delegate?

Thanks Christian!
Changing from “WeakAddressOf” to “AddressOf” showed me in the debugmode where the NilObjectException occurs.