Check the process's memory and GDI objects

  • Open the Windows Task Manager to view the usage of memory and GDI object of the PB application process.

    For 32-bit applications, Windows supports a maximum of 2GB of memory. If the memory usage of a PowerBuilder application approaches 2GB during operation, it is very easy to crash.

    Windows applications use a maximum of 10,000 GDIs by default. If objects approach this value, a crash will occur.

  • Analyze the causes of the issue

    When crashes happen as memory or GDI objects approaching their maximum value, it is recommended to analyze whether they are caused by PB code, such as duplicate object creation without timely release, excessive data volume, too many UI controls, etc. If so, it is recommended to modify the code.

    If it is found that the PB product itself has a memory or GDI object leak, it is recommended to submit a ticket through Appeon’s Support Portal.

  • Try to work around this issue

    If the crash is caused by a 32-bit application exceeding 2 GB of memory, try switching to the 64-bit version and run it again to see whether it works normally.

    If it is caused by the GDI object number exceeds the maximum value, you can refer to the following KB to see if modifying the registry resolves the issue:

    https://www.appeon.com/developers/get-help/knowledgebase/4425