Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / October 2004

Tip: Looking for answers? Try searching our database.

How to release excel from memory

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anu - 29 Oct 2004 04:14 GMT
i am using ASP.net to read one excel file.
after reading the excel file cell by cell, i am not able to release the excel.
i am using
objExcel.Application.Quit()
objExcel = Nothing

but still excel is not releasing from memory

thanx in advance

Anu
Imran Koradia - 29 Oct 2004 04:49 GMT
try calling Marshal.ReleaseComObject(objExcel) before setting it to nothing.

hope that helps..
Imran.

>i am using ASP.net to read one excel file.
> after reading the excel file cell by cell, i am not able to release the
[quoted text clipped - 8 lines]
>
> Anu
Mike S. - 29 Oct 2004 23:54 GMT
Anu,
I tried and tried to get this same functionality from asp.net using Excel
2000 and never did get to a point where it would release properly. Apparently
some people have. It depends on what objects you open, how you open them and
the order you release them in. I read that someone used API calls to release
the object - Ok if you want all instances shut down but not a good thing if
you have the probability of more than one instance being instantiated.

Take a look at this good article by Steve C. Or
http://www.aspnetpro.com/NewsletterArticle/2003/09/asp200309so_l/asp200309so_l.asp

-Mike

> i am using ASP.net to read one excel file.
> after reading the excel file cell by cell, i am not able to release the excel.
[quoted text clipped - 7 lines]
>
> Anu

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.