Skip to Content
author's profile photo Former Member
Former Member

Error calling external object function intialize

Hi all,

In our application we are using CaseDocs.DocCasesCtl control.

We are recieving "Error calling external object function intialize" when the below line of code is being executed.

ole_1.object.Initialize(is_case , gl_obsessionhandle)

FYI. The same code is working in XP machine but not in Windows 7.

We tried re-registering CaseDocs.ocx but had no luck.

Please advice on this.

Thanks in advance,

Lavanya.


error.JPG (20.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Sep 16, 2014 at 07:50 AM

    How did you register your OCX? using regvr32 from c:\windows\system32 ?

    Is your Windows 7 a 64-bit machine?

    If yes, can you try to re-register your OCX control (32-bit?) using regsvr32 from correct folder:

    1. Open a DOS command prompt (run as administrator)

    2. Change directory to C:\Windows\SysWOW64

    3. Unregister the control using the command "regsvr32 /U xxxx.ocx"

    4. Re-Register using the command "regsvr32 xxxx.ocx"

    Indeed, you have to use a 32-bit OCX with PowerBuilder

    HTH,

    Jacob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 16, 2014 at 12:09 PM

    Hi Lavanya;

    1) Are you sure that the control your using is W7 certified?

    2) I would suggest wrapping the OLE script in a TRY..CATCH. Quite often, more information is provided on the error in the Exception object.

    Are you using the W7 32bit or 64bit O/S?

    Regards ... Chris

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      Hi Chris,

      The OCX that we are using is our own application and this ocx is being called from PowerBuilder.

      Also the same OCX is working fine when called from the VB application.

      Can you please help us to resolve this.

      Thanks in Advance,

      Lavanya.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2014 at 11:09 AM

    Hi,

    Do we have any other solution for this issue. We are still struck up with the same issue

    Thanks,

    Lavanya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2014 at 04:37 PM

    NEED HELP.

    Can anyone tell whether Windows 7 supports Powerbuilder 11.5 version.

    We are not able to figure out the solution for this.

    Can anyone help on this.

    Thanks in advance,

    Lavanya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2014 at 04:42 PM

    Hello Lavanya,
    Take a look at the following to see if it will help troubleshoot the problem:

    http://scn.sap.com/community/developer-center/powerbuilder/blog/2014/09/24/how-to-capture-error-messages-from-an-activex-control

    Ted Zimmerman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2015 at 08:48 AM

    Hello Lavanya,

    I liked to know have you solved this problem ? we have the same problem calling a fingerprint OCX function

    We have registered the ocx and copy it to syswow64 (w7 - 64bit)

    We have checked using ole browser and found all the functions listed in the OCX

    But why the PB 12 can't find the function, the error code is 39 - error accessing external object property

    Is it the same old issue ?

    Thanks for any help.

    Regards,

    RW

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2016 at 10:40 AM

    Hi ,

    I have also the got the similar issue while running one of my application.when i try to generate the ms word documents by that application i am getting the error " Error calling external object function intialize" and the error message alert is displaying.

    Initially when i run the application i got the first error " unable to start the OLE server process error" after that frequently i am getting that error " Error calling external object function initialize" when i am running and generating word documents.

    I am using windows 7 64 bit os.can you tel me how to fix it.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.