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 / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Encoder - Removal??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bsmengen - 12 Mar 2008 23:22 GMT
I have a C# application that uses Windows Media Encoder 9 to stream multiple
programs.  For each new program, I create a new instance of WMEncoder.  After
successfully stopping the Encoder, what is the proper way to remove it for
Garbage Collection?  Currently I set Encoder = null and Garbage Collection
should remove it from what I understand.  

I have not been able to get rid of the new Encoder instances and this
creates a memory leak.  Please help.

Is there any good documentation out there dealing with Interop.WMEncoderLib?
I haven't found any yet or good C# code examples dealing with this matter.  

Is there a function of Dispose or something similar for the Encoder?  I need
to figure out the correct way to release all the resources of the Encoder.

Thanks,
Bob

Bob
Chris Dunaway - 13 Mar 2008 14:31 GMT
On Mar 12, 5:22 pm, Bsmengen <Bsmen...@discussions.microsoft.com>
wrote:
> I have a C# application that uses Windows Media Encoder 9 to stream multiple
> programs.  For each new program, I create a new instance of WMEncoder.  After
[quoted text clipped - 15 lines]
>
> Bob

Is it a COM component?  If so, you should probably call the
Marshal.ReleaseComObject method on it.

Chris

Rate this thread:







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.