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!

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


5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 11 2019 : 20:07:04
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
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
Hi

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

Nigel
Xequte Software
www.imageen.com
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..).

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

Nigel
Xequte Software
www.imageen.com