1. ma jack
  2. PowerBuilder
  3. Wednesday, 8 November 2023 02:57 AM UTC

Hello everyone,

I'm using PB2019R3 2781 and have encountered an issue while using DDE. When the DDE server is running, and I call the GetRemote method in the client, followed by the GetDataDDE method, the client application crashes without any error message.

I have created a sample program to reproduce the problem with the following steps:

  1. Run dde_client.exe and click button 1 to start the DDE server.
  2. Click the 'start' button on the server window to initiate the DDE service.
  3. Sequentially click buttons 2 and 3.

I have tested this sample program in the following versions:

  • In PB 11.5, the GetDataDDE method returns -1, and the application does not close.
  • In PB 12.6, when calling the GetDataDDE method, the client becomes unresponsive and eventually closes.

I would like to understand how these two methods are internally processed and what is causing the application to crash. Additionally, I'm curious as to why the application does not close in PB 11.5

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 8 November 2023 16:58 PM UTC
  2. PowerBuilder
  3. # 1

Hi Ma;

  Yes, that crashes for me too in PB 2019R3 - even later builds than yours.

  Your GetDDE Test Case code crashes in PB 2022 R2 as well.

  However, I refactored your PB App Test case code a bit and it now works in PB 2022 R2. (but not in PB 2019R3).

  If you decide to move to PB 2022 R2, I can then share my revamped test case code that I did for you to try

HTH

Regards ... Chris

Comment
  1. ma jack
  2. Thursday, 9 November 2023 02:44 AM UTC
thank you, chris. I'm sorry, but I currently have no plans to migrate to PB2022, so I have to find a way to solve this issue in 2019. Do you have any hints about the reasons for the client crash?
  1. Helpful
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.