Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OLE & Marshal static object

Former Member
0 Likes
350

Hi Friends,

I am writing some data to excel. Although I am calling Quit and Close methods of OLE2 objects and free ole2 objects, 'EXCEL' process is still in task manager. When the report is finish 'EXCEL' process is delete from task manager. But I want to delete 'EXCEL' process not when report end. I want to learn that is there any way to call Marshal.ReleaseComObject method? But Marshall is static class and there is no relative with Excel application.

Thanks.

Hi Friends,

I am writing some data to excel. Although I am calling Quit and Close methods of OLE2 objects and free ole2 objects, 'EXCEL' process is still in task manager. When the report is finish 'EXCEL' process is delete from task manager. But I want to delete 'EXCEL' process not when report end. I want to learn that is there any way to call Marshal.ReleaseComObject method? But Marshall is static class and there is no relative with Excel application.

Thanks.

1 REPLY 1