ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Exception with findContours inside a Thread
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

GEVI

Canada
9 Posts

Posted - Nov 24 2021 :  15:54:34  Show Profile  Reply
Hi!

I am using Delphi 11 Alexandria.

When calling ievision findContours method inside a thread, I am getting the following message:

Project XXXXXXXXX.exe raised exception class $C0000005 with message 'c0000005 ACCESS_VIOLATION'.

The call stack shows this:




I have just copied the following code from an initial prototype development where works with no issues:


    LFindContourImage := IEVisionLib.createImage(LIntermediateImage.GetIEVisionImage.getWidth, LIntermediateImage.GetIEVisionImage.getHeight, ievUINT8, 1);
    LFindContourImage.operatorASSIGN(LIntermediateImage);
    LContourRef := LFindContourImage.FindContours(IevEXTERNAL,ievCHAIN_APPROX_SIMPLE,IEVisionPoint(0,0));


Have you had any problem like this before?

By the way, in the same thread I am using other methods like erode or threshold with no AV.

Thanks,


GEVI

xequte

38180 Posts

Posted - Nov 25 2021 :  00:40:50  Show Profile  Reply
Hi

So in a simple thread demo does it still crash, or only in your application?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

GEVI

Canada
9 Posts

Posted - Nov 25 2021 :  10:05:07  Show Profile  Reply
Hi Nigel,

For now looks like it is only in our application. The special thing is that we are using the OmniThread library to create thread pools. Is there any way to have more details on why the method is failing?

Thanks!

GEVI
Go to Top of Page

GEVI

Canada
9 Posts

Posted - Nov 25 2021 :  12:20:11  Show Profile  Reply
Hi Nigel,

After your question I double checked and yes, I have the problem even in the main thread. The same AC. It seems related to the latest version of ievision. This code worked fine with the old version.

Thanks again and sorry for the confusion

GEVI
Go to Top of Page

GEVI

Canada
9 Posts

Posted - Nov 25 2021 :  12:39:59  Show Profile  Reply
One more thing. I tried TrackObjects demo and it works with no issues if the platform is 32 -bit, but changing the platform to 64-bit causes the same Access Violation.

So you should be able to reproduce the issue.

Let me know your comments.

GEVI
Go to Top of Page

xequte

38180 Posts

Posted - Nov 25 2021 :  16:05:34  Show Profile  Reply
Hi

We have a fix for this. It will be available as part of the official 6.0.1 release in the next week or so, but you can email me if you need it now.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: