Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Dispose Record Data
Jaaahhh
✭
Hello,
I am confused....! What do I do wrong??
I use the latest RAB software with VB.net.
Problem: Memory Leak
I am installing data in my application.
Code:
' ----------------------------------
' 1 x Task Leak, 1 x Datatype leak
' -------------------------------------------------------------------------------
' Create RapidData object for tCell
'---------------------------------
ATask = AController.Rapid.GetTask("MAINTASK")
AModule = AController.Rapid.GetTask("MAINTASK").GetModule("GLOBAL")
ARapidData = AModule.GetRapidData("cell")
ARapidDataType = AModule.GetRapidData("cell").DataType
''
rbt_rdCell = ARapidData
rbt_rdtCell = ARapidDataType
rbt_Cell = New tCell(rbt_rdtCell)
' -------------------------------------------------------------------------------
When I want to dispose the data I use the following code:
' --------------------------------------------------------------------------
If Not rbt_rdCell Is Nothing Then
rbt_rdCell.Dispose()
rbt_rdCell = Nothing
End If
If Not rbt_rdtCell Is Nothing Then
rbt_rdtCell.Dispose()
rbt_rdtCell = Nothing
End If
' --------------------------------------------------------------------------
Now when I close the application and look on the Com port I get the following message:
-> [fp]: Memory leak??????
~SDKDisposeBase() called for ABB.Robotics.Controllers.RapidDomain.Task [53514]
[fp]: Memory leak??????
~SDKDisposeBase() called for ABB.Robotics.Controllers.RapidDomain.RapidData [535
19]
I do not know how to get this memory leak go away.....!!
Any suggestion?
Best Regards,
0
Comments
-
You need to dispose of ATask, AModule ARapidData and ARapidDataType if it supports disposeRussell Drown0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings