Tralsys / BIDSSMemLib

BIDS用SharedMemoryを簡単に扱うためのLibrary
https://tralsys.github.io/BIDSSMemLib/
Other
7 stars 0 forks source link

ThreadAbortException at BSMD Read Method #3

Closed TetsuOtter closed 4 years ago

TetsuOtter commented 4 years ago

Error Message


BSMD Comp:System.Threading.ThreadAbortException: スレッドを中止しようとしました。 場所 System.Threading.Monitor.ObjWait(Boolean exitContext, Int32 millisecondsTimeout, Object obj) 場所 System.Threading.Monitor.Wait(Object obj, Int32 millisecondsTimeout, Boolean exitContext) 場所 System.Threading.Monitor.Wait(Object obj, Int32 millisecondsTimeout) 場所 System.Threading.ManualResetEventSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) 場所 System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 millisecondsTimeout, CancellationToken cancellationToken) 場所 System.Threading.Tasks.Task.InternalRunSynchronously(TaskScheduler scheduler, Boolean waitForCompletion) 場所 System.Threading.Tasks.Task.RunSynchronously(TaskScheduler scheduler) 場所 System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) 場所 System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action1 body) 場所 TR.BIDSsv.Common.Common_BSMDChanged(Object sender, BSMDChangedEArgs e) 場所 C:\Users\tetsu\Documents\GitHub\BIDS_Server\BIDSsv\Common.AutoSend.cs:行 272 場所 System.EventHandler`1.Invoke(Object sender, TEventArgs e) 場所 TR.BIDSSMemLib.SMemLib.set_BIDSSMemData(BIDSSharedMemoryData value) 場所 C:\Users\tetsu\Documents\GitHub\BIDSSMemLib\BIDSSMemLib\SMemLib.cs:行 24 場所 TR.BIDSSMemLib.SMemLib.Read(BIDSSharedMemoryData& D, Boolean DoWrite) 場所 C:\Users\tetsu\Documents\GitHub\BIDSSMemLib\BIDSSMemLib\SMemLib.cs:行 242

実行環境

症状

BIDS_Server Serial modを使用してAndroidデバイスとBluetooth経由で通信している際, Get_TRI_Data関数の疎通チェックに失敗する.

TetsuOtter commented 4 years ago

とりあえず症状が発生しなくなったため, 解決したものとする.