SAP Knowledge Base Article - Preview

2237526 - SAP PB .NET - Memory increases when open/close sheets in WPF app

Symptom

  • When opening/closing sheets in a PowerBuilder .NET WPF application, memory continues to increase and then results in the following error message:

PowerBuilder application execution error
Application terminated
Error: Exception thrown has not been handled.:
System.OutOfMemoryException at line 9 in event clicked of object m_test

memory.png

 

For example:
When the following code under a menu item.clicked event is executed, it will return the System.OutOfMemoryException
integer ii_value

for ii_value = 1 to 2000
       Opensheet (w_window_2, w_main_window, 3, Layered!)
       Opensheet (w_window_1, w_main_window, 3, Layered!)
       Opensheet (w_window_3, w_main_window, 3, Layered!)
       Opensheet (w_window_6, w_main_window, 3, Layered!)
       Opensheet (w_window_5, w_main_window, 3, Layered!)
       Opensheet (w_window_4, w_main_window, 3, Layered!)
       Close(w_window_2)
       Close(w_window_1)
       Close(w_window_3)
       Close(w_window_6)
       Close(w_window_5)
       Close(w_window_4)


Run 1 – memory (private working set) is 431,704
Run 2 – memory (private working set) is 782,524
Run 3 – memory (private working set) is 1,125,300
Run 4 – memory (private working set) is 1,453,864

At the Run 5, the System.OutOfMemoryException error appeared.


Read more...

Environment

  • SAP PowerBuilder (PB) .NET 12.6

Product

SAP PowerBuilder 12.6

Keywords

.net,wpf,memory,increase,sheets,mdi, CR791548, 791548 , KBA , BC-SYB-PB , Powerbuilder , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.