Bad image format exception while running application

Bad image format exception while running application

Bild des Benutzers Shyam

Hi All,

I just created a windows application. I am trying to run UtilMPipeline.LoopFrames() method through it. But I am running it on different thread so that my UI thread will maintain responsiveness., but getting this error.

Could not load file or assembly 'libpxcclr, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. This occurs when I try to call method on different thread, but not while loading.

Here is my code

Navigator _navigator = null;
public frmPicNavigator()
{
InitializeComponent();
try
{
_navigator= new Navigator();
Task<bool> workerTask = Task.Factory.StartNew<bool>(() =>_navigator.LoopFrames());
_navigator.ApplicationGestureAlertEvent += new Navigator.ApplicationGestureAlert(_navigator_ApplicationGestureAlertEvent);
}
catch (Exception exx)
{
MessageBox.Show(exx.Message.ToString());
}

}

This is what i am trying to achieve. Can someone help me here with issue.

Thanks in advance


3 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers Xintian Wu (Intel)

Looks like there is some issue in your environment setup. Will you be able to run any existing samples such as gesture_viewer.cs?

Bild des Benutzers Shyam

yes i am able to run an example.

No issues with setup. I guess its issue with the way i am initiating core module. Why its not initiating in new thread?

Melden Sie sich an, um einen Kommentar zu hinterlassen.