C# application slowing down using PC SDK

DavidM
✭
Hi
We have a C# application that uses PC SDK to communicate with an IRB 120. Over a period of an hour or two, the C# application screen refreshes slow down and eventually it will crash. Task Manager indicates very low CPU and Memory usage which remains steady over time, so am wondering if anyone else has experienced this?
Thanks
David
We have a C# application that uses PC SDK to communicate with an IRB 120. Over a period of an hour or two, the C# application screen refreshes slow down and eventually it will crash. Task Manager indicates very low CPU and Memory usage which remains steady over time, so am wondering if anyone else has experienced this?
Thanks
David
0
Comments
-
Do you call "Dispose" method to avoid memory leaks? You can read more about this on the chapter "Accessing the controller" in PC SDK manual.protected override void Dispose(bool disposing){if (!IsDisposed){try{if (disposing){//ToDo: Call the Dispose method of all FP SDK instances that may otherwise cause memory leak}}finally{base.Dispose(disposing);}}}0
-
Thank you Egor for your suggestions.
I'm not currently explicitly disposing of objects but am doing so implicitly (I think) by using the following:using (Mastership m = Mastership.Request(rpdController.Rapid)){David
}
On reading again the chapter you mentioned, I noticed the rpdController.ReleaseUnmanagedResources method which I might try.
Regards0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings