Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC:

Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions 04 May 2020 14:28 #14348

  • Stavros Spanos
  • Stavros Spanos's Avatar
  • Topic Author


  • Posts: 68
  • 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...

    Please Log in or Create an account to join the conversation.

    Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions 04 May 2020 14:56 #14351

    • robert
    • robert's Avatar


  • Posts: 3447
  • 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
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions 04 May 2020 16:36 #14355

    • Stavros Spanos
    • Stavros Spanos's Avatar
    • Topic Author


  • Posts: 68
  • 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 > www.chestysoft.com/ximage/default.asp

    File Attachment:

    File Name: x86Chestysoft.zip
    File Size:1,533 KB
    Attachments:

    Please Log in or Create an account to join the conversation.

    Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions 04 May 2020 16:53 #14357

    • robert
    • robert's Avatar


  • Posts: 3447
  • Stavros,
    Do you also have the VO code where you are using this ?

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions 05 May 2020 11:19 #14369

    • Stavros Spanos
    • Stavros Spanos's Avatar
    • Topic Author


  • Posts: 68
  • 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.

    Please Log in or Create an account to join the conversation.

    Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions 06 May 2020 09:22 #14382

    • robert
    • robert's Avatar


  • Posts: 3447
  • 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
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Problem with an OCX in Win 7 & W2008 R2 - Working with newer versions 06 May 2020 10:19 #14383

    • Stavros Spanos
    • Stavros Spanos's Avatar
    • Topic Author


  • Posts: 68
  • 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

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1