1. Brent Schlumkoski
  2. PowerBuilder
  3. Monday, 13 May 2024 18:40 PM UTC

We have an application when we debut in 32 bit mode works fine but when we debug in 64 bit more it does not.

The spot that is not working is a OLE object creation and then a ConnectToNewObject.  This ConnectToNewObject is is throwing a -3 in 64 bit IDE debugging and not certain what to do to fix it?

 

 

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 14 May 2024 14:08 PM UTC
  2. PowerBuilder
  3. # Permalink
That is great to hear, Brent! Please take a moment and mark your (this) reply post as "Resolved". Good luck with your migration!
Comment
  1. Brent Schlumkoski
  2. Tuesday, 14 May 2024 14:10 PM UTC
I hope I got this marked as resolved. If I have not, can you advise how.

  1. Helpful
There are no comments made yet.
Brent Schlumkoski Accepted Answer Pending Moderation
  1. Tuesday, 14 May 2024 12:22 PM UTC
  2. PowerBuilder
  3. # 1

We have a process here to register DLL's that we normally did not have to do.

When we ran that process it appears we are able to run now.

Thank you for all your quick feed back.

 

Brent

Comment
  1. Brent Schlumkoski
  2. Tuesday, 14 May 2024 14:05 PM UTC
Will do...
  1. Helpful
There are no comments made yet.
Brent Schlumkoski Accepted Answer Pending Moderation
  1. Tuesday, 14 May 2024 12:04 PM UTC
  2. PowerBuilder
  3. # 2

Please see information per your inquiries:

 

1. PB Version/Release/Build?

Appeon PowerBuilder 2022 R3

Appeon PowerBuider CloudPro Edition

IDE: Verson 2022 R3 Build 3356, Build on Ma 28 2024 at 03:11:39

Runtime: Version 2022 R3 Build 3356 Build on March 28, 2024 at 03:11:39


2. Windows Version?

Microsoft Windows 10 Enterprise

Version 10.0.19045 Build 19045


3. What OLE server are you connecting to?

We are not using and OLE server.

It is local to my machine.


4. Please clarify: Does ConnectToNewObject work in 64-bit when NOT debugging?

We have an internally created .NET DLL created.

We create the OLE user object and then issue a .ConnectToNewObject and returns a -3 error.

This occurs when running the IDE and using the new feature to run in 64 bit mode to debug an issue.

When we run from an actual build (complied executable), we have no issues


5. Is this new behavior (have you been able to debug this in 64-bit before)? If this worked previously, what has changed?

We have not debugged in PowerBuilder before as it is only in the new version we are looking to migrate to.

Works in 32 bit executable and debugging in IDE, and in 64 bit executable only cannot get 64 bit IDE debugging to work.


6. Have you opened a bug report with Appeon?

Have not opened up a bug report with Appeon as yet.  Was looking on line and in this forum to see if there was something previously report.

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 13 May 2024 21:11 PM UTC
  2. PowerBuilder
  3. # 3

Hi Brent;

  If your using the OLE container to talk to an OCX, it's probably a 32 bit version. If so, you'll need it's 64 bit OCX equivalent.

Regards ... Chris 

Comment
  1. Brent Schlumkoski
  2. Tuesday, 14 May 2024 12:11 PM UTC
We have an internally created .NET DLL created.

We create the OLE user object and then issue a .ConnectToNewObject and returns a -3 error.

This occurs when running the IDE and using the new feature to run in 64 bit mode to debug an issue.

When we run from an actual build (complied executable), we have no issues

  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 13 May 2024 19:57 PM UTC
  2. PowerBuilder
  3. # 4

Hi, Brent - 

You've supplied very little information to go on. Some additional information would be very helpful regarding the -3 (Unable to connect) return code. such as:

1. PB Version/Release/Build?
2. Windows Version?
3. What OLE server are you connecting to?
4. Please clarify: Does ConnectToNewObject work in 64-bit when NOT debugging?
5. Is this new behavior (have you been able to debug this in 64-bit before)? If this worked previously, what has changed?
6. Have you opened a bug report with Appeon?

Best regards, John

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.