私はコンパクトなフレームワークプロジェクトのスレッドで作業しており、以下のようなコードを持っています。 StartThreads()にステップインしようとすると、NotSupportedExceptionがスローされます。これはちょっとひどいようですが、なぜStartThreads()を呼び出す行に例外がスローされ、内部ではなく、CFでサポートされていないのは何ですか?私はそのThreadStart.BeginInvokeだと思うが、例外が実際にスローされている場所ではない。ThreadStart.BeginInvokeはコンパクトフレームワークでNotSupportedExceptionをスローします
void SomeMethod()
{
this.StartThreads(); // <- NotSupportedException is thrown here, I can't step into this method with the debugger
}
void StartThreads()
{
ThreadStart threadStart = BeginDoStuff;
threadStart.BeginInvoke(EndDoStuff, null);
}
上に読むことをお勧め[OK]をおかげで、私の次の質問http://stackoverflow.com/questions/1063189/asynccallbackに私をリード-for-a-thread-on-compact-framework – Charlie
スレッドプールがサポートされており、CFアプリケーションで広く使用されています – trampster
Daniel、そうです。 –