WL8 crashed while running a strategy in the strategy monitor. I'm not sure, but it seems it was in the middle of a sell. I heard the signal go off, looked over at the monitor, and the exception dialog appeared and WL8 crashed immediately. I was using streaming bars, 1-minute scale and Schwab.
I restarted WL8 and backtested the strategy, and it ran fine.
In any case the crash got recorded in the Windows Event log. Here's the data along with the WL8 version info:

I can't supply the strategy because it is in C# and depends on my WL8 utility library.
I restarted WL8 and backtested the strategy, and it ran fine.
In any case the crash got recorded in the Windows Event log. Here's the data along with the WL8 version info:
CODE:
Log Name: Application Source: .NET Runtime Date: 6/18/2025 9:56:03 AM Event ID: 1026 Task Category: None Level: Error Keywords: Classic User: N/A Computer: DESKTOP Description: Application: WealthLab8.exe CoreCLR Version: 8.0.1124.51707 .NET Version: 8.0.11 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.List`1.Enumerator.MoveNextRare() at WealthLab.Backtest.SignalManager.ReadBase(Object value, ParamEventArgs col) at WealthLab.Core.EventRouter.FireEvent(String eventType, Object param) at WealthLab.Backtest.BrokerBase.ForgotEvent() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) Event Xml: <Event xmlns="<a href="http://schemas.microsoft.com/win/2004/08/events/event" target="_blank">http://schemas.microsoft.com/win/2004/08/events/event</a>"> <System> <Provider Name=".NET Runtime" /> <EventID Qualifiers="0">1026</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2025-06-18T13:56:03.8693562Z" /> <EventRecordID>244018</EventRecordID> <Correlation /> <Execution ProcessID="28564" ThreadID="0" /> <Channel>Application</Channel> <Computer>DESKTOP</Computer> <Security /> </System> <EventData> <Data>Application: WealthLab8.exe CoreCLR Version: 8.0.1124.51707 .NET Version: 8.0.11 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.List`1.Enumerator.MoveNextRare() at WealthLab.Backtest.SignalManager.ReadBase(Object value, ParamEventArgs col) at WealthLab.Core.EventRouter.FireEvent(String eventType, Object param) at WealthLab.Backtest.BrokerBase.ForgotEvent() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) </Data> </EventData> </Event>
I can't supply the strategy because it is in C# and depends on my WL8 utility library.
Rename
Wow I'm surprised .NET crashed on that exception instead of triggering our built-in exception handler. But this is some good info and I should be able to make a change that will prevent this particular exception in the future.
Your Response
Post
Edit Post
Login is required