J
Joseph Gasiorek
I have placed the Visio ActiveX control on a form in .Net and I have a
timer that triggers every 100 m.s.
When the Application initializes:
1) load a document
2) Disable UNDO,EVENTS, and AutoRecovery.
3) Close down all unwanted windows
On the timer Tick:
1)Generate new values to update 3 shapes on the active page.
2)Configure all parmeters for a SetResult call on the page
3)Disable App.ScreenUpdating
4)call SetResults
5)Enable App.ScreenUpdating
6)Use Marshal.ReleaseComObject(object), where objects are created for
manipulation of the page, application (in an attempt to clean up
memory -- it behaves the same way with out this)
If I run this exe, you can see the Memory usage gradually increase (in
task manager). So after 30 minutes my memory goes from 41meg to
75meg, and keeps climbing.
This is the first time I have used the control, I have had tremendous
success in doing a similar thing in a 2002 VSL. Has any one else seen
this memory usage?
Anyone have any ideas?
timer that triggers every 100 m.s.
When the Application initializes:
1) load a document
2) Disable UNDO,EVENTS, and AutoRecovery.
3) Close down all unwanted windows
On the timer Tick:
1)Generate new values to update 3 shapes on the active page.
2)Configure all parmeters for a SetResult call on the page
3)Disable App.ScreenUpdating
4)call SetResults
5)Enable App.ScreenUpdating
6)Use Marshal.ReleaseComObject(object), where objects are created for
manipulation of the page, application (in an attempt to clean up
memory -- it behaves the same way with out this)
If I run this exe, you can see the Memory usage gradually increase (in
task manager). So after 30 minutes my memory goes from 41meg to
75meg, and keeps climbing.
This is the first time I have used the control, I have had tremendous
success in doing a similar thing in a 2002 VSL. Has any one else seen
this memory usage?
Anyone have any ideas?