Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
Tokci123 Absent Member.
Absent Member.
514 views

How to clear memory cache in WPF application

   Hi All,

We have WPF application and there is scrollbar. We scroll and find the dynamic element(WPFListViewItem)

WPFListView(parent) and WPFListViewItem (child objects)

Using Exists method I scroll till I dont find element and everything works fine as long as scroll is vertically down but after scrolling vertically down I again need to scroll up to find second element I face issue. My code is stuck on below line and does not move forward.

Some time application stops responding and after some time becomes fine.  

        _desktop.WPFListView("//WPFToggleButton[@caption='*']").GetScrollPosition(Orientation.Vertical)

How to handle this?

I think I need to clear memory cache once I scroll down and need to scroll up. 

Any idea how to clear memory cache?

Is this the issue or something else ?

 

Tokci

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.