kenkendk / sme

Synchronous Message Exchange
MIT License
10 stars 3 forks source link

SimpleComponents Sample with .BuildCSVFile() Fails #21

Open ToddThomson opened 5 years ago

ToddThomson commented 5 years ago

SME.ReadViolationException: 'Attempted to read the signal Value on the bus SimpleComponents.SimpleFifoBuffer`1+IInputBus[[System.Byte, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] before the signal was set'

Commenting out the extension allows the sample to run.

kenkendk commented 5 years ago

I think this is caused by the tracer trying to read the signal value before it was set. With Mono and VS Studio / MonoDevelop the debugger did not stop on this exception because it was handled. With VS Code, the debugger stops unless you set "justMyCode": "false" in launch.json.

I have just pushed an update to the dotnet core branch that removes this exception, which greatly speeds up the simulation as well.