Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 199 results for
idisposable
- Page 1
Re: iDisposable pattern
Programming
Software Development
9 Years Ago
by DaveAmour
… memory in a more efficient way?
IDisposable
won't help I wrote an article on
IDisposable
a few years ago: http://www…
Re: iDisposable pattern
Programming
Software Development
9 Years Ago
by JOSheaIV
… properly manage my resources, or manage them better. One was
IDisposable
, which I found a great article that finally explain it… to get that to you later). Now that being said,
IDisposable
works great for when you pretty much close out an…
Re: iDisposable pattern
Programming
Software Development
9 Years Ago
by JOSheaIV
… more useful. First of all here is the link for
IDisposable
I talked about. I highly suggest this, as it finally… it all up for me http://manski.net/2012/01/
idisposable
-finalizer-and-suppressfinalize/ Now for your Image objects (again I…
iDisposable pattern
Programming
Software Development
9 Years Ago
by necrovore
… memory back to the heap. My question here is will
iDisposable
pattern help me is solving my problem? P.S: any…
Implement IDisposable and IEnumerable
Programming
Software Development
9 Years Ago
by Suzie999
… which is using IEnumerable and I now need to implement
IDisposable
class Class1 : IEnumerable<Class12> { ;stuff } How can I…? My first thought was class Class1 : IEnumerable<Class12> :
IDisposable
{ ;stuff } Which I obviously cannot do. (edit) Sorry, I believe…
Re: iDisposable pattern
Programming
Software Development
9 Years Ago
by DaveAmour
Are you using any unmanaged resources?
Re: iDisposable pattern
Programming
Software Development
9 Years Ago
by necrovore
No unmanaged resources. just class objects. I only want the objects memory that go out of scope to go faster back to the heap.
Re: iDisposable pattern
Programming
Software Development
9 Years Ago
by ddanbe
? They are allready on the heap when they go out of scope. Any code would perhaps help.
Re: iDisposable pattern
Programming
Software Development
9 Years Ago
by necrovore
Hi ddanbe, thanks for input. This is my understanding of the memory management by GC (correct me if i am wrong). when the object goes out scope, it does not mean the memory is released then and there. It still occupies the memory, it is released only when GC does his job the next time around. I shall post the code after taking off the BL from it.
Re: iDisposable pattern
Programming
Software Development
9 Years Ago
by necrovore
Class Page { List<Text> Texts; List<Image> Images; List<graphics> Graphics; } Text, Image and Graphics are other classes. Test and image have no other list within them but graphics have `List<pathsegments>` which in turn will have `List<PathPoints>` Each time i am creating a …
Help with listbox
Programming
Software Development
14 Years Ago
by GAME
…if (enumerator2 is
IDisposable
) { (enumerator2 as
IDisposable
).Dispose(); } } num2++; } } finally { if (enumerator is
IDisposable
) { (enumerator as
IDisposable
).Dispose(); } } this.iTotal…
Should I set an object = nothing
Programming
Software Development
13 Years Ago
by shadachi
…I set an object to nothing even after implementing an
IDisposable
method to my custom class ? Correct me if i… later on . [code] Class TestObject Implements
IDisposable
' Implement
IDisposable
. Public Overloads Sub Dispose() Implements
IDisposable
.Dispose Dispose(True) GC.SuppressFinalize(Me) End…
Re: writing reusable dispose pattern
Programming
Software Development
12 Years Ago
by deceptikon
…to consider whether the class *needs* to implement
IDisposable
in the first place. If it doesn't…can use a base class: public abstract class Disposable :
IDisposable
{ protected bool _disposed { get; private set; } …re saving yourself is a field member, the
IDisposable
interface implementation, and a finalizer. All of …
Array resets to 0 after calling method
Programming
Software Development
14 Years Ago
by Peacer
…ComponentModel; namespace GlobalFighter { class VEarth :
IDisposable
{ VEarthImagery.MapUriRequest mapRequest; VEarthImagery.ImageryService iService…}, Options = mapUriOptions }; } #region
IDisposable
Members public void Dispose() { iService.Dispose…
Recording sound with C# .....Errors in Program .....
Programming
Software Development
13 Years Ago
by apanimesh061
….Write(wBitsPerSample); } } public class WAVEHDR :
IDisposable
{ public const int whdr_done = 0x00000001; public …public class wave_in { protected class WaveFile :
IDisposable
{ protected IntPtr m_hwi = IntPtr.Zero; protected…
Network Class
Programming
Software Development
13 Years Ago
by thatscrap12543
… ClientTCPConnection_Strings Implements
IDisposable
'==================================================================================================================================================== Dim …Public Overloads Sub Dispose() Implements
IDisposable
.Dispose Dispose(True) GC.SuppressFinalize…
How
Programming
Software Development
12 Years Ago
by Am0l
… Import class in c# is something like Public class Import:
IDisposable
{ protected bool swigCMemOwn; public Import(IntPtr cPtr, bool cMemoryOwn); …int Load(SWIGTYPE_p_p_Object value); } and Object class Public Class Object :
IDisposable
{ } I am not able to understand how to use …
How to use SWIGTYPE_p_p_Object in c#?
Programming
Software Development
12 Years Ago
by Am0l
… Import class in c# is something like Public class Import:
IDisposable
{ protected bool swigCMemOwn; public Import(IntPtr cPtr, bool cMemoryOwn); public… int Load(SWIGTYPE_p_p_Object value); } and Object class Public Class Object :
IDisposable
{ } I am not able to understand how to use function…
writing reusable dispose pattern
Programming
Software Development
12 Years Ago
by sumitrapaul123
…sample code below. public class MyClass :
IDisposable
{ private readonly IBanking mybanking; public MyClass…() { Dispose(false); } #region
IDisposable
Members public void Dispose() { Dispose(true…
NHibernate Inheritance problems.
Programming
Software Development
7 Years Ago
by overwraith
… public class ReportRepository : HibernateRepository<Report, int>,
IDisposable
{ public ReportRepository() { this.session = OpenSession(); } ///…gt; : IRepository<TEntity, TKey>,
IDisposable
where TEntity : class { protected static ISessionFactory…
Re: C# Create new void for List<T>
Programming
Software Development
12 Years Ago
by tinstaafl
…I wasn't sure what you wanted to do with
IDisposable
//so I commented it out in order to compile public… struct Npc //:
IDisposable
{ public short id; public float fX; public float fZ;…
Re: writing reusable dispose pattern
Programming
Software Development
12 Years Ago
by Momerath
Why are you implementing
IDisposable
at all? You don't allocate any unmanaged resources, so there is no need for you to do so. Also, this is C#, we don't normally have destructors unless there is a good reason to do so. This isn't one of them.
Retrieve E-Mail Through POP3
Programming
Software Development
15 Years Ago
by milhero
… from it. Because Pop3Client derives from Component, it indirectly implements
IDisposable
. Therefore, you can also override the Dispose method to ensure…
How to impersonate not local user?
Programming
Software Development
15 Years Ago
by saggiatorius
… under the new context] /// ... /// } /// /// ... /// </remarks> public class Impersonator :
IDisposable
{ private WindowsImpersonationContext _wic; /// <summary> /// Begins impersonation with the…
Trying to open a file for read from command line argument
Programming
Software Development
15 Years Ago
by ThomsonGB
…); Console::Write(Convert::ToChar(kb[0])); } } finally { if ( kfs ) delete (
IDisposable
^)kfs; } } // -eof- [/code] ========================================== Thank You in advance for any help…
How to Dispose SqlConnection in C#
Programming
Software Development
14 Years Ago
by sachintha81
… that I am thinking of using. [CODE]public class MySqlConn :
IDisposable
{ private static readonly object objectLock = new object(); private bool _disposed…
Global hotkey doesn't work... please help
Programming
Software Development
14 Years Ago
by michaelsd
… you [code] namespace Kosmala.Michal.ActiveXTest{ public class ActiveXObject : NativeWindow,
IDisposable
{ public const int WM_HOTKEY = 0x0312; private IntPtr pFoundWindow ; public ActiveXObject…
Recording sound with C# .... one error ... please help !
Programming
Software Development
13 Years Ago
by apanimesh061
[CODE] public class WAVEHDR :
IDisposable
{ public const int whdr_done = 0x00000001; public const int whdr_prepared = 0x00000002; …
Using Matlab function wavread() in C#
Programming
Software Development
13 Years Ago
by apanimesh061
…> /// @Version 0.0 /// </remarks> public class dotnetclass :
IDisposable
{ #region Constructors /// <summary internal= "true"> /// The…
Freeing Assembly Reference
Programming
Software Development
13 Years Ago
by chrispepper1989
…(filename)) but it protested that Assembly was not derived from
IDisposable
...which i could have sworn it was! Any idea whats…
1
2
3
4
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC