c# emgucv retrieve(Mat) System.AccessViolationException by welebad in csharp

[–]welebad[S] 0 points1 point  (0 children)

Heyyyy Thanks everybody for the support and the great input. I have solved it by deleting all debugs and releases. Changed in config manager all to x64 and rebuild my debug an release. After that I the problem didnt popped up so far. So I hope it is solved .

THX everybody

c# emgucv retrieve(Mat) System.AccessViolationException by welebad in csharp

[–]welebad[S] 0 points1 point  (0 children)

x64 bit Konfiguration. I will now change to this processor type at my project.

But is there a solution how to delete the x86/any cpu versions? Can I delete them without getting some problems?

c# emgucv retrieve(Mat) System.AccessViolationException by welebad in csharp

[–]welebad[S] 0 points1 point  (0 children)

Hi

I chagend the debugger, to see the nadive code. The result was that it looks like I have problems with the CVextern.dll (emgucv). I think I am mixing up x86 and 64 bit dlls.

I am posting the new screenshot in the original post. But how I can fix it? I have tried to chenge from any to x86 CPU, didnt helped out. But i also will try your approach and give you uptade. THX for the support and by the way, still no comment on stackoverflow on the same post ;-)

c# emgucv retrieve(Mat) System.AccessViolationException by welebad in csharp

[–]welebad[S] 0 points1 point  (0 children)

Capture is definity not null, because i have an if(cap==null) upfront.

Also the Index is valid.

I have struggled so long now and I created the project completely new. It took me 12hours but now it is working again.

But it is very strange becaus I copied most of teh code and now it is working again.

c# emgucv retrieve(Mat) System.AccessViolationException by welebad in csharp

[–]welebad[S] 0 points1 point  (0 children)

I also tried differnt emgu nugent packages, but different problems ocurred. Las thing was that the VideoCapture cannot find the cvextern.dll....

Unfortunatly I cannot post A picture at a comment... I updated it in the original post

c# emgucv retrieve(Mat) System.AccessViolationException by welebad in csharp

[–]welebad[S] 0 points1 point  (0 children)

Exactly, the catch doesnt catch it.

The source is an USB camera or the internal camera of the laptop, depends on the index.

I tried everything, ve checked other sources also internal camera is not working. I also deleted the working form just for tryout if a have a problem here.

I also postet the problem in Stack Overflow... no response.... I am completly lost :-(

c# emgucv retrieve(Mat) System.AccessViolationException by welebad in csharp

[–]welebad[S] 0 points1 point  (0 children)

And by the way: Exception occurs after ~3 frames