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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Exception with findContours inside a Thread

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
GEVI Posted - Nov 24 2021 : 15:54:34
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
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 25 2021 : 16:05:34
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
GEVI Posted - Nov 25 2021 : 12:39:59
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
GEVI Posted - Nov 25 2021 : 12:20:11
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
GEVI Posted - Nov 25 2021 : 10:05:07
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
xequte Posted - Nov 25 2021 : 00:40:50
Hi

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

Nigel
Xequte Software
www.imageen.com