akka-bootcamp icon indicating copy to clipboard operation
akka-bootcamp copied to clipboard

Lesson 2.1 - No longer throws an exception in initial state

Open sambeckingham opened this issue 5 years ago • 3 comments

Lesson 2.1 begins with the scenario that the application fails due to cross-thread operations. However, using .NET 4.5 and Akka 1.1.1, (current state of master), this exception is no longer thrown. How come Akka no longer has an issue with this scenario? Is there another way we can recreate this error for the purposes of education on dispatchers, or does the lesson need updating to a new format to better explain?

sambeckingham avatar Jul 28 '20 13:07 sambeckingham

Yeah, I'm seeing the same with .Net Core 3.1 and Akka 1.4.9.

paulspencerwilliams avatar Aug 11 '20 09:08 paulspencerwilliams

I get mixed results for this. Opening the initial state Unt2-DoThis (as in the downloaded zip from the paid for bootcamp package), which has Akka 1.1.1 I DO get the cross thread exception when running in Visual Studio 2019, but DO NOT when running in Rider. No that doesn't make sense to me either, but thought I'd comment FWIW.

Winsto avatar Mar 02 '21 17:03 Winsto

In Rider, go to Settings>Build, Execution, Deployment and in the Exceptions section tick "Break on user-unhandled exceptions". See Rider documentation on this here. Then the debugger will stop execution on this exception.

james-world avatar May 14 '21 21:05 james-world