S
Shahzad Godil
I am Architect of development of our one Visio based application in VB.Net
2003. So many customer continously reporting memory leak issue in our
application. I am using different profiler to find out which area is
getting memory and then verifying that either it is relelasing properly at
the end of that process.
In going detail, we were able to fix so many issues by implement general
practices for handling Unmanaged code.
Now only one issue is now remaining which is causing memory leak is this.
If you see this code, we are assigning a very large string to our Data1
property of Visio Shape. And now whenever it is assigning, it is never
releasing.
Now seems like as it is changing, visio is keeping this in its undo history.
What I want simply is that whenever I called this method, its changes should
be applied in diagram but it should be include in visio undo history.
Thanks
Shahzad Godil
Karachi-Pakistan.
-----------------------------------------
Dim strString As String
strString = Me.ShapeDomain.GetAsXML.OuterXml
Me.VisioShape.Data1 = strString
strString = Nothing
-------------------------------
2003. So many customer continously reporting memory leak issue in our
application. I am using different profiler to find out which area is
getting memory and then verifying that either it is relelasing properly at
the end of that process.
In going detail, we were able to fix so many issues by implement general
practices for handling Unmanaged code.
Now only one issue is now remaining which is causing memory leak is this.
If you see this code, we are assigning a very large string to our Data1
property of Visio Shape. And now whenever it is assigning, it is never
releasing.
Now seems like as it is changing, visio is keeping this in its undo history.
What I want simply is that whenever I called this method, its changes should
be applied in diagram but it should be include in visio undo history.
Thanks
Shahzad Godil
Karachi-Pakistan.
-----------------------------------------
Dim strString As String
strString = Me.ShapeDomain.GetAsXML.OuterXml
Me.VisioShape.Data1 = strString
strString = Nothing
-------------------------------