revalNG / omnithreadlibrary

Automatically exported from code.google.com/p/omnithreadlibrary
0 stars 0 forks source link

OTL Exception #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello!

Why does if i start a task with OTL in ThreadPool just exit by itself without 
no exception by debugger? It just gets terminated by itself.. 

Does OTL Task exit if there is an exception? If so how to prevent that.

                  CreateTask(TWorker.Create())
                    .Invoke(@TWorker.Execute)
                    .MonitorWith(FEventMonitor)
                    .Join(FWorkers)
                    .WithLock(FLockToken).Schedule(GlobalOmniThreadPool);

Original issue reported on code.google.com by ad...@techsource.mygbiz.com on 11 Dec 2012 at 11:08

GoogleCodeExporter commented 8 years ago
If there's an exception in the task, it is closed. Task controller can check 
the FatalException property which will in this case hold the exception object.

Original comment by gabr42 on 26 May 2013 at 7:32