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
 Access violation in SelectAcquireSource
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

spetric

Croatia
308 Posts

Posted - Nov 08 2019 :  17:15:04  Show Profile  Reply
Hi,

I have a problem with an old code that use to work with older ImageEn verion.
In version 8.1.1 this code produces access violation.

I have extracted suspicious part that throws error:


TImageEnIO *IO = new TImageEnIO((TComponent*)0); 
IO->SelectAcquireSource(); // access violation


First I thought that there was a problem with TImageEnIO construction parameter,
but whatever I put there, access violation always occurs.

This code use to work in one of the old versions of ImageEn, but now I don't know if I'm doing something wrong.

It works ok when there is some ImageEnView

PaintView->IO->SelectAcquireSource(); // test


However, I need to acquire image without any ImageView/ImageEnVect object.

Any suggestion.
TIA,
Siniša


xequte

38610 Posts

Posted - Nov 08 2019 :  21:01:00  Show Profile  Reply
Hi Siniša

I cannot reproduce in 8.7.5. I have a feeling there was an issue there. Please email me for a free update.

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

spetric

Croatia
308 Posts

Posted - Nov 09 2019 :  15:03:25  Show Profile  Reply
Thanks Nigel,

I made a little workaround using dummy ImageEnView and
performing all operations on ieView->IO. Works fine.
However, when form is themed/styled (Charcoal dark slate) scanner dialog
is loosing fields (comboboxes, labels, etc..).

Initially:




When mouse is over tab:



This does not happen when style is "native".
Now I need to get window handle to disable theming for scanner dialog.
Go to Top of Page

xequte

38610 Posts

Posted - Nov 09 2019 :  15:26:24  Show Profile  Reply
Hi

Is that a VCL style? How does an external dialog inherit the style???

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

spetric

Croatia
308 Posts

Posted - Nov 11 2019 :  02:43:21  Show Profile  Reply
Yes, it's a VCL style, but obviously it effects Win10 window when created from
styled form. Here is the same scanner dialog without VCL styling:



Very interesting.
Go to Top of Page

xequte

38610 Posts

Posted - Nov 11 2019 :  20:07:04  Show Profile  Reply
Hi

Huh, I was not aware VCL styles had any effect on non-Delphi forms. Clearly your knowledge is better on this than mine, so you might be better posting the issue to StackOverflow (as I don't think there is an ImageEn connection here).

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