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
 Access violation in SelectAcquireSource

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

Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List


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
spetric Posted - Nov 08 2019 : 17:15:04

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.

5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 11 2019 : 20:07:04

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).

Xequte Software
spetric Posted - Nov 11 2019 : 02:43:21
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.
xequte Posted - Nov 09 2019 : 15:26:24

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

Xequte Software
spetric Posted - Nov 09 2019 : 15:03:25
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..).


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.
xequte Posted - Nov 08 2019 : 21:01:00
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.

Xequte Software