No announcements
Found 103879 threads
-
0 Votes
IDisposable, IComponent, Component, MarshalByValueComponent
http://blogs.msdn.com/b/atverma/archive/2010/08/01/how-to-choose-betweenAnswered | 3 Replies | 1176 Views | Created by ardmore - Monday, November 5, 2012 7:45 PM | Last reply by Mike Feng - Wednesday, November 7, 2012 6:08 AM -
0 Votes
IComponent
IComponent is designed to be used from user code, not sure what docs Blair is referring to. What are you looking at achieving? If you only want to create a ...Answered | 3 Replies | 3804 Views | Created by Tony Castagno - Saturday, May 6, 2006 3:17 AM | Last reply by Blair Allen Stark - Saturday, June 10, 2006 5:38 PM -
0 Votes
strange toolbox behavior with IComponent
problem is that I'd prefer to implement IComponent and not inherit from Component because I want to inherit a class that doesn't inherit from ...Unanswered | 1 Replies | 4373 Views | Created by Andrea Lattuada - Sunday, September 17, 2006 11:02 AM | Last reply by Archie - Tuesday, April 19, 2016 4:44 PM -
0 Votes
IDisposable
. If it is too expensive to leave allocated but unused, waiting for the garbage collector to get to it, then you should implement IDisposable. The clients of your class need to ...Answered | 5 Replies | 3500 Views | Created by Lars1346 - Wednesday, December 3, 2008 7:26 AM | Last reply by nobugz - Sunday, December 7, 2008 2:52 PM -
0 Votes
IDisposable
I should probably know this, but anyway; I have an EventLog instance in my application. This implements IDisposable but in it's current state it's inconvenient for me ...Answered | 6 Replies | 2413 Views | Created by Barguast - Friday, August 6, 2010 4:24 PM | Last reply by Harry Zhu - Sunday, August 8, 2010 9:54 AM -
0 Votes
Silverlight, INotifyPropertyChanged, and IComponent
Hi, I'm having a problems with versions 2.0.0.0 and 2.0.5.0 of System.dll, where I need to have both 'INotifyPropertyChanged' and ...Answered | 2 Replies | 15583 Views | Created by MSDN_Forums_User - Sunday, October 19, 2008 9:57 PM | Last reply by FranklinGray - Sunday, July 12, 2009 3:43 PM -
0 Votes
IDisposable & ImageAttributes
I've been reviewing my code to ensure that all IDisposable objects were being properly disposed of, when I came upon an interesting problem. I tried placing an ImageAttributes object within a ...Answered | 2 Replies | 3567 Views | Created by Adrien Regimbald - Tuesday, September 26, 2006 8:45 PM | Last reply by Adrien Regimbald - Tuesday, September 26, 2006 10:13 PM -
1 Votes
C# IDisposable
class MyResource : IDisposable { private IntPtr handle; private Component component = new Component(); ...Answered | 2 Replies | 1365 Views | Created by recherche - Thursday, December 19, 2013 11:51 AM | Last reply by recherche - Thursday, December 19, 2013 1:23 PM -
0 Votes
WaitHandle (IDisposable)
Not implementing IDisposable on WaitHandle in V1 was more of an omission on our part rather than a design decision and we decided to fix this in V2. Thanks.Answered | 4 Replies | 3582 Views | Created by armanddp - Tuesday, February 21, 2006 7:55 AM | Last reply by armanddp - Thursday, February 23, 2006 8:35 AM -
0 Votes
IDisposable Error
Code Block ref class ManagedClass : IDisposable{ public: ~ManagedClass(){Answered | 3 Replies | 4189 Views | Created by Christiawan - Thursday, November 22, 2007 2:39 AM | Last reply by Bite Qiu - MSFT - Wednesday, November 28, 2007 8:13 AM -
0 Votes
Understanding IDisposable
Thanks Mike. You're basically right. You might as well pretend now that I've created a new interface called IDisposable, with a Dispose method, that has nothing to do with ...Answered | 21 Replies | 1993 Views | Created by MelbourneDeveloper - Monday, January 6, 2014 12:44 AM | Last reply by MelbourneDeveloper - Wednesday, August 6, 2014 5:19 AM -
0 Votes
IDisposable Interface
Unless you want to micro-manage all your resources or if you are manually loading any resources (Texture2D.FromFile, etc), you don't need to implement IDisposable. contentManager.Unload() ...Answered | 1 Replies | 3675 Views | Created by winipcfg - Monday, January 22, 2007 5:21 PM | Last reply by dczraptor - Monday, January 22, 2007 10:42 PM -
1 Votes
C# IDisposable
Thx for your answer, but still have problem with the unmanaged, managed resources........i checked out the IDisposable pattern and i understand it..... but i don`t get the GC collection ...Answered | 3 Replies | 4519 Views | Created by sannyo - Friday, August 21, 2009 9:48 AM | Last reply by ZHE ZHAO - Wednesday, August 26, 2009 7:27 AM -
0 Votes
Does anyone know how to implement IComponent?
This worked: using System; using System.ComponentModel; class MyComponent : SomeBaseClass, IComponent, IDisposable ...Unanswered | 6 Replies | 4433 Views | Created by Tim Douglas - Friday, October 24, 2008 3:29 PM | Last reply by Tim Douglas - Tuesday, October 28, 2008 10:44 AM -
0 Votes
Inheritance and IDisposable
Please refer to the following page on MSDN for information about how to implement the IDisposable interface in base types and derived types:Answered | 1 Replies | 647 Views | Created by Andy-W (UK) - Monday, March 3, 2014 2:46 PM | Last reply by Magnus (MM8) - Monday, March 3, 2014 3:18 PM -
0 Votes
Implementing IComponent does not show up in Toolbox, but inheriting Component does
=28CA08C411D6BFDE!3067&authkey=!ACRACGRhGc-o2Lw&ithint=file%2czip If you open the project in VS2015, you see only 1 component in the Toolbox. ...Proposed | 9 Replies | 499 Views | Created by Archie - Monday, February 22, 2016 9:05 PM | Last reply by Jack Zhai-MSFT - Tuesday, April 19, 2016 4:36 AM -
0 Votes
IDisposable
Hi everybody, Is there a way to know if a transactionScope was correct completed before finish my dispose method? Exists some status from it? I want to ...Answered | 1 Replies | 3211 Views | Created by Henrique_Machado - Thursday, February 12, 2009 8:55 PM | Last reply by nobugz - Friday, February 13, 2009 2:27 AM -
0 Votes
IDisposable problem
You're getting the error exactly for the reason it's stating - you need to implement the Dispose method of the IDisposable interface (note that this method does not take in any parameters). ...Answered | 2 Replies | 9186 Views | Created by dennist685 - Saturday, January 21, 2006 8:34 AM | Last reply by dennist685 - Saturday, January 21, 2006 3:50 PM -
0 Votes
IDisposable Issue
DeviceBase : IDisposable { private SerialPort serialPort; private bool _isDisposed;Answered | 2 Replies | 3870 Views | Created by Yort - Sunday, October 14, 2007 10:15 PM | Last reply by MaxPower - Monday, October 15, 2007 6:12 AM -
1 Votes
IDisposable, Dispose Pattern & Finalizers
Just to add another point, you should never chain finalizers -- only IDisposable implementations. Putting a finalizer on a class that doesn't directly hold unmanaged resources ...Answered | 6 Replies | 4434 Views | Created by mattneri - Tuesday, August 19, 2008 7:39 PM | Last reply by Christoph Nahr - Wednesday, August 20, 2008 7:51 AM - Items 1 to 20 of 103879 Next ›
No announcements