How we use garbage collector in our project to release Uipath memory

“How we use garbage collector in our project to release Uipath memory .”

2 Likes

Fine
hope this would help you

Cheers @Pradeep4

Hi @Pradeep4,

Inside the Invoke code Activity . you can use like this

GC.Collect()
GC.WaitForPendingFinalizers()
GC.Collect()

Here is the sample :
MemoryLeaks.zip (12.0 KB)

Here is a detail information about it.

Regards
Balamurugan.S

5 Likes

Hi @balupad14 shall I use this code at the beginning of the invoked workflow or at the end?