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
 MIO->SelectedAcquireSource and Access violation
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graph_man

328 Posts

Posted - Jun 09 2017 :  08:18:04  Show Profile  Reply
void __fastcall TAFTV_FormMain::Scanner1Click(TObject *Sender)
{
TIEAcquireSource MyAcquireSource;
TIEAcquireApis AcquireApis = TIEAcquireApis() << ieaTwain << ieaWIA;

if (ImageEnMViewScan->MIO->SelectAcquireSource(AcquireApis))
{
MyAcquireSource = ImageEnMViewScan->MIO->SelectedAcquireSource;
AcquireSourceName = MyAcquireSource.Name;
}
}

What is reason and how to fix?

ps
I use the latest version of ImageEn

xequte

38615 Posts

Posted - Jun 10 2017 :  01:21:38  Show Profile  Reply
Hi

On which line does the A/V occur? Does changing the API selection affect it?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graph_man

328 Posts

Posted - Jun 10 2017 :  10:27:47  Show Profile  Reply
> On which line does the A/V occur?

This line:
MyAcquireSource = ImageEnMViewScan->MIO->SelectedAcquireSource;

> Does changing the API selection affect it?

Yes

Go to Top of Page

xequte

38615 Posts

Posted - Jun 11 2017 :  19:31:24  Show Profile  Reply
>> Does changing the API selection affect it?
>
> Yes

So, which raises the error, ieaWIA or ieaTwain?

Does this issue occur even with the AllAcquire demo in Demos\ImageAcquisition\AllAcquire\?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graph_man

328 Posts

Posted - Jun 12 2017 :  03:55:29  Show Profile  Reply
> So, which raises the error, ieaWIA or ieaTwain?

Both

Does this issue occur even with the AllAcquire demo in Demos\ImageAcquisition\AllAcquire\?

Does not
Because in the demo there isn't string:
ImageEnMViewScan->MIO->SelectedAcquireSource
after
SelectAcquireSource
Go to Top of Page

xequte

38615 Posts

Posted - Jun 12 2017 :  17:48:16  Show Profile  Reply
Hi

Yes, it is in the demo if you click "Save Parameters". Does that also cause the error?

You might want to try stepping into the SelectedAcquireSource code to see where the error is occuring.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graph_man

328 Posts

Posted - Jun 12 2017 :  18:05:19  Show Profile  Reply
> Yes, it is in the demo if you click "Save Parameters". Does that also cause the error?

NO

> You might want to try stepping into the SelectedAcquireSource code to see where the error is occuring.

How to do that?
Go to Top of Page

xequte

38615 Posts

Posted - Jun 12 2017 :  20:11:52  Show Profile  Reply
Hi

Presumably there is an issue in your application. Please create a very simple demo that reproduces the error.

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