This is rather tricky, so I post this here in case anybody has an idea that could help...
We have recently purchased Chestysoft's csXImage OCX , something that deals with Image processing and watermarking.
All works ok, except that in Win 7 or 2008 R2 clients VO app breaks with a typical 5333 Access assign error, when we intantiate the control.
All work ok in all next windows versions.
No other control has such problems and also we got in touch with the manufacturer and found out that typical VB sample apps work ok in W7.
Unfortunately things seem to be ok concerning registration.
I use CMD in elevated mode for REGSVR32 and REGSVR32 /U to uninstall. I did it several times and all functions fine!
The following code is the one that functions ok when the control is not registered (I receive the messagebox””). But when the control is registered (successfully – the system says in CMD) the underlined code just crashes (in fact it seems something fails during instantiation).
As I said previously we have a lot of customers and anybody using Win 8,10 is OK, while W7 and WS 2008R2 have this problem. Fortunatelly I have reproduced this in a W7 pc in the office so I can check easily any possible solution.
Any help appreciated…
METHOD OrbitXImageControlInit() CLASS OrbitcsXImageControl
LOCAL lReturn AS LOGIC
lReturn := SELF:CreateEmbedding( "csXImage.ImageBox" ) <-- This crashes
IF ( .NOT. lReturn )
MsgBox( "Caution", "CsXImage ActiveX Control initialiazation failed. " )
ENDIF
RETURN lReturn
Any help appreciated...
Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions
- Stavros Spanos
- Posts: 115
- Joined: Thu Nov 12, 2015 4:59 pm
- Location: Greece
Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions
Stavros,
Can you send me the OCX and a test program, so I can run this through the debugger and see where the crash originates ?
Robert
Can you send me the OCX and a test program, so I can run this through the debugger and see where the crash originates ?
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
- Stavros Spanos
- Posts: 115
- Joined: Thu Nov 12, 2015 4:59 pm
- Location: Greece
Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions
Sure Robert!
I attach the demo files (have the same problem). Just register (works ok) and instantiate in a W7 machine - you ll get the crash. Do the same in W10 - all ok.
Product page > https://www.chestysoft.com/ximage/default.asp
I attach the demo files (have the same problem). Just register (works ok) and instantiate in a W7 machine - you ll get the crash. Do the same in W10 - all ok.
Product page > https://www.chestysoft.com/ximage/default.asp
Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions
Stavros,
Do you also have the VO code where you are using this ?
Robert
Do you also have the VO code where you are using this ?
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
- Stavros Spanos
- Posts: 115
- Joined: Thu Nov 12, 2015 4:59 pm
- Location: Greece
Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions
Ok Robert.
I'm attaching .AEF with all code. All runs ok in Win10. Instantiation crashes in Win7. I'm in touch with the OCX manyfacturer so if you have any results pls tell me.
I'm attaching .AEF with all code. All runs ok in Win10. Instantiation crashes in Win7. I'm in touch with the OCX manyfacturer so if you have any results pls tell me.
- Attachments
-
- ApplicationCSXIMAGE.rar
- (69.34 KiB) Downloaded 74 times
Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions
Stavros,
I can't even get this OCX to work on my Windows 10 development machine. The call to CreateEmbedding() returns FALSE:
lReturn := SELF:CreateEmbedding( "csXImageTrial.ImageBox" )
When I add the license key from the LIC file to the call:
lReturn := SELF:CreateEmbedding( "csXImageTrial.ImageBox","{62E57FD0-1CCD-11D7-8344-00C1261173F0}" )
then it returns FALSE as well.
I am sorry but I have no idea what causes this.
If you drop the control on the form in the designer then it seems to work.
Robert
I can't even get this OCX to work on my Windows 10 development machine. The call to CreateEmbedding() returns FALSE:
lReturn := SELF:CreateEmbedding( "csXImageTrial.ImageBox" )
When I add the license key from the LIC file to the call:
lReturn := SELF:CreateEmbedding( "csXImageTrial.ImageBox","{62E57FD0-1CCD-11D7-8344-00C1261173F0}" )
then it returns FALSE as well.
I am sorry but I have no idea what causes this.
If you drop the control on the form in the designer then it seems to work.
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
- Stavros Spanos
- Posts: 115
- Joined: Thu Nov 12, 2015 4:59 pm
- Location: Greece
Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions
Robert did you check my AEF?
Don't deal with any licence code. Just REGSVR32 the OCX and run my AEF. The lic file just has to reside in the same dir as the OCX.
We could Skype for some minutes anytime you are available.
Thanks
Don't deal with any licence code. Just REGSVR32 the OCX and run my AEF. The lic file just has to reside in the same dir as the OCX.
We could Skype for some minutes anytime you are available.
Thanks