Memory management
axel
✭
I'm just a bit confused about how to handle the memory in a PC SDK app.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" />
I open up the controller with those rows:
robControl = new Controller(GUID);
robControl.Logon(UserInfo.DefaultUser);
....and later on I finnish the session with:
Controller.ReleaseUnmanagedResources();
robControl.Logoff();
robControl.Dispose();
robControl = null;
The problem is that sometimes it seems to be some memory leaks:
[Output window]
[ControllerManager.OnProcessExit(->)]: 634002031191329528
[ControllerManager.OnProcessExit(<-)]: 634002031191485779
The program '[2516] HMI.exe: Managed' has exited with code 0 (0x0).
Perhaps I have missed something?
Regards axel
0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings