Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions
Posted: Mon May 04, 2020 12:28 pm
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...
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...