1. Marco Armbruster
  2. PowerBuilder
  3. Friday, 3 May 2024 12:32 PM UTC

Hello everyone,

I need to integrate a foreign modul which is available as an ocx. After having registered this ocx I can insert it in PB as an OLE-object. It´s running fine but when closing the window which contains the OLE object my app (or PB) is frozen and CPU goes up. The developer og the ocx tells me, that he uses this modul for many years without any issue.

Does anybody have an idea how to solve th eproblem or how to find out, what´s going on?

Marco Armbruster Accepted Answer Pending Moderation
  1. Friday, 3 May 2024 14:48 PM UTC
  2. PowerBuilder
  3. # 1

Hi John,

thx for your quick reply. The problem is that even PB hangs many times (not all the time) when I close and save the object painter containing the OLE object. But this happens only with this third party OCX modul. I´m not that familar with programming OCX or OLE.

Best regards

Marco

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 3 May 2024 13:41 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Marco -

Without any knowledge about the OCX in question and no link provided to any documentation about said OCX, it's nearly impossible to say with any certainty what the cause of the issue could be.

Since you are in contact with the developer, ask him/her(/it) if there are any methods in the OCX you should be calling to "shut down" or cleanly terminate the OCX prior to closing the window.

Also, do you use the PowerScript Destroy command to explicitly destroy all OLEObject objects before closing the window? If not, you should.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.