1. jagadeeshwar g
  2. PowerBuilder
  3. Tuesday, 15 January 2019 17:00 PM UTC

Hello experts,

 

My application using emulator to get fectch the result and it was shown in powerbuilder windows.

Now we have written code to decommission the existing emulator and enable new emulator.

connect to new emulator we have used OLEObject functions and new emulator dll functions.

actual issue;- Application crashes while closing.

while close the application ,Non-visual userobject functions are triggering to disconnect and clear the values from new emulator, then exit the application.

ex; uo_ex.disconnect()

      uo_ex.cleanup()

      //here piece of code to close the emulator,used emulator dll function.

      HALT CLOSE

     destory OLEObject

 

tested application working fine, but every third time application is crashing.

Please suggest ,

1. do we have any limitation on userobject size.

2. how do we know what objects consuming more memory.

 

regards

jagadeeshwar

 

 

 

 

 

 

 

 

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 17 January 2019 15:34 PM UTC
  2. PowerBuilder
  3. # 1

I've seen times when applications crash if there is no RETURN after the halt close

Especially when people do a halt close from open() events.

So indeed, do the destroy before the HALT Close and just in case: put a return statement right after it.

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 15 January 2019 19:02 PM UTC
  2. PowerBuilder
  3. # 2

The Destroy line will not be executed because it comes after the Halt Close. The only code executed after Halt Close is the application objects Close event.

As Chris said, try putting the Destroy before the Halt.

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 15 January 2019 17:55 PM UTC
  2. PowerBuilder
  3. # 3

Hi Jagadeeshwar;

   Have you tried reversing your code?

For example:

Destory OLEObject
HALT CLOSE

HTH

Regards ... Chris

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.