Bad image format exception while running application

Bad image format exception while running application

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 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

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

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?

Faça login para deixar um comentário.