I try to implement a BackgroundWorker for my Database, so that my applikation does not freeze whenever i try to get huge amount of data out of it.
http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx
All things which happening in my BackgroundWorker is only the Database select execution. I save my results in a List.
At the BackgroundWorker.completed Event i start creating gameobjects based on the database entrys, and than Unity crashes. Always with the error messages:
"!Thread:EqualsCurrentThreadID(m_MainThreadID)" "!Thread:EqualsCurrentThreadID(GetPersistentManager().GetMainThreadID())&& mode != kCreateObjectDontRegisterInstanceID" "m_ThreadCheck&&!Thread:EqualsCurrentThreadID(m_ThreadID)"
Is it possible to multithread in Unity3d? And if. Do you have a hint where my mistake could be?