|
I am working on a .NET project, which needs to interact with some user defined classes - reffered to as "jobs". All job classes must implement a specific interface IJob in order order for the library to consume them. Sometimes a job class might hold unmanaged...
Started by Jørn Schou-Rode on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The semantic difference is whether you say.
It is also how Autofac's container disposal works.
|
|
What do I need to do to get rid of my old UPS? The battery no longer works, and the unit is probably completely hosed at this point, as the equipment on it suffers from the occasional complete reboot. So, I won't give it to someone or donate it, because...
Started by mmr on
, 10 posts
by 9 people.
Answer Snippets (Read the full thread at serverfault):
Don't let them charge you.
They deal with battery disposal.
It to them!
Take it to a car garage.
|
|
Do I need to call Dispose() on a Graphics object obtained through PaintEventArgs in an OnPaint event?
Started by joek1975 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But you should dispos of Graphics objects that you've created yourself (for example .
As method parameters.
|
Ask your Facebook Friends
|
We have 100+ hard drives we need to dispose of, the CEO had requested they be pulled from all decommissioned PCs before giving away. What is the best environmentally safe way to dispose of these that will prevent someone potentially getting files/data...
Started by mxmissile on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
If you are willing, but I am assuming you would just like to be rid of ... .
Them yourself, and then send them off to a professional for disposal where for disposal since most companies cannot 100% guarantee the data will not be intercepted.
|
|
I have one method that receives a Stream to write on it using a BinaryWriter. But when I dispose this BinaryWriter it also closes the stream. Can I leave it undisposed so I can leave my stream open?
Started by Jader Dias on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Jon has a NonClosingStreamWrapper in MiscUtil which should work: you wrap your stream in the non-closing... .
In the case of BinaryWriter , that isn't a direct option (although some stream wrappers do allow you to control this, for example GZipStream etc) .
|
|
I hope there's a SharePoint expert here on SO who can help with this.
Here's the problem. My SharePoint logs contain this line, several times:
An SPRequest object was not disposed before the end of this thread. To avoid wasting system resources, dispose...
Started by Robert S. on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Location for checking Disposal caveats is:
http://blogs.msdn.com/rogerla.
|
|
What procedures do people follow before recycling or disposing of old PC's?
Do you:
Remove the hard drive Damage it beyond repair Use a tool to completely wipe the hard drive. If so, which? Other Is the hard drive the only component that you "cleanse"...
Started by nzpcmad on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at serverfault):
Just wipe the drive and sell it on Craigslist....
The shred program from GNU coreutils implements this.
And yes, the hard drive is the only component I'd 'cleanse' You could use Gutmann method to wipe your hard drive .
Fire.
Load gun.
Remove hard drive.
|
|
Let's say I have two elements on a page. One is a div, and the other is its child, an achor. Let's say that I've added an event to that anchor via anchor.addEvent('click', ...) . If I set the div's .innerHTML = '' , does the ' click ' event associated...
Started by JamesBrownIsDead on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Test example:
var parent = new Element('div'); var child = new Element('div', { events : { click : function() { alert('child... .
If so, it will stay in memory until all references are removed .
It depends if you have still reference to "anchor" DOM instance .
|
|
So, here's the problem...
(note: I'm new to this house)When I flip the switch for the disposal it trips the gfci outlet that the switch runs off of. I just put a new switch in, and I've tested the outlet that the disposal plugs into. The disposal works...
Started by saltwater taco on
, 20 posts
by 7 people.
Answer Snippets (Read the full thread at tacomaworld):
The disposal works if I plug it into the top outlet if the disposal....
I just put a new switch in, and I've tested the outlet that the disposal plugs into.
For the disposal it trips the gfci outlet that the switch runs off of.
|
|
Hi all,
I just played with Java file system API, and came down with the following function, used to copy binary files. The original source came from the Web, but I added try/catch/finally clauses to be sure that, should something wrong happen, the Buffer...
Started by paercebal on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Having an unguarded....
By the way, if one of the calls to oSBuffer.read or oDBuffer.write throws an exception, then you probably want to let that exception permeate up the call hierarchy .
Unfortunately, this type of code tends to get a bit bloated in Java .
|