|
OriginalGriff wrote: be more annoying than mixing tabs and spaces in Python ...
I didn't think this (annoyance) was possible.
|
|
|
|
|
OTH: GC is able to detect not longer in use objects. Why not the same for IDisp?
|
|
|
|
|
Because it's not important.
Frequently I wrap an IDisposable object in another class and dispose of it when I dispose of the wrapper object, no big deal. I wouldn't want to have a warning I would have to disable to avoid an error when I compile with warnings as errors.
There are bigger bugs to fry.
|
|
|
|
|
But in case you use a class from a library: You really always check wheter it is IDisposable or not?
In my case it was ManagementObjectSearcher from System.Management .
To check you need to go back inhertitance until you end in Object or yes maybe before in IDisposable
|
|
|
|
|
Ah, well, I rarely use third-party rubbish anyway. Or VS.
Put it in a using and see if it compiles.
Or use Intellisense to see if it has a Dispose.
|
|
|
|
|
Intellisense, yes that would be nice. No idea where Intellisense shows it is IDisp.
Btw. third-party rubbish like ManagementObjectSearcher
|
|
|
|
|
P.S. Also consider classes which are IDisposable but which have private constructors, such as Singletons and classes which provide a static Create method.
Sadly, many bloggers pass along misinformation about IDisposable and the using statement.
|
|
|
|
|
Project -> Properties -> Code Analysis: Checked - Enable Code Analysis on Build
Project -> Properties -> Code Analysis: Dropdown Selection - Microsoft All Rules
You want to make sure you are getting warnings for code CA2000 Dispose objects before losing scope
|
|
|
|
|
|
How did you do the upgrade? I used AOMEI Backupper, which includes a specific "upgrade to SSD" option and it worked quickly and didn't give any problems. Apparently partition boundaries need to be aligned differently, so a straight "clone" may not work perfectly.
★ SSD Alignment - SSDs have different structures to HDDs so the partitions will need to be aligned along the SSD block boundaries during the cloning process. With this option, AOMEI Backupper will take over the job, as thus you don't need to worry about the alignment of the SSD and the speed of the cloned SSD.
Don't know how your disk is organised, but it's worth a try (and free).
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: How did you do the upgrade?
I used Apricorn's SATA Wire and EZ Gig run from the CD drive. Basically, plug up the new drive to a USB, start the software on the CD, do the clone, shutdown, and swap the drives....easy peasy!
I've use it a couple of times previously with no problems whatsoever. I'm betting mostly on an ID10.T error here for the missing files/'differences'. For the speakers though it's entirely possible I pulled a speaker wire so hopefully that's an easy fix.
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
For me, Family Tech Support is another source of income $$$. I don't help anyone under the age of 65 for free. Millennials are double the price.
|
|
|
|
|
Slacker007 wrote: Millennials are double the price.
... and boomers are triple. They blame all problems with their computer, pre-existing or otherwise, on your work. It's simply not worth the hassle.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: and boomers are triple. They blame all problems with their computer, pre-existing or otherwise, on your work. It's simply not worth the hassle. I'm one of those boomers. I'm also the family IT guy.
I don't get complaints.
Software Zen: delete this;
|
|
|
|
|
I've had to look it up, but yes, he is a 'boomer' and apparently, I'm an 'X'. He thinks I'm doing it for free because I enjoy playing with computers all day! In reality, I'm doing it to possibly put an end to the constant whining about how slow his laptop is.
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
Slacker007 wrote: Millennials are double the price.
|
|
|
|
|
I do immediate family only, and am explicit that my work doesn't come with a warranty, speedy service guarantee, etc. If they want that; the blue box or local computer shop will both sell it for a few hundred dollars.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
I don't talk to my family. Except for SWMBO. She just surfs the net using my wi-fi. So as long as it is working (And I use it myself, so I notice it first,), I am golden.
ed
|
|
|
|
|
90% of family tech support is now managed by my wife, I enter the scene only when SHTF or a network must be set up (she's perfectly capable of connecting any device to a running network).
She is way more patient than me in help desk. And for stuff on smartphones I too end up asking her she uses hers much more than I use mine.
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
That's why I don't tell my family that I work with computers. I've told them that I am a drugdealing pimp, and they seem to have believed that...
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
I love the "after you installed the latest update on my phone the microwave stopped working. Can you undo whatever it is you did?"
cheers
Chris Maunder
|
|
|
|
|
|
I didn't realize Ovo Energy read that cartoon!
UK[^], Everyone else[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I didn't realize that Calvin & Hobbes had restarted. I guess my complete edition is no longer complete!
EDIT 1: High of -17C (2F) here today.
EDIT 2: Looks like they're reruns and that it hasn't restarted.
modified 11-Jan-22 11:33am.
|
|
|
|
|
Quote: The last strip of Calvin and Hobbes was published on December 31, 1995.
from here
I also have the complete edition (and beeing proud of it), perhaps a reminder to have a look at it again ...
|
|
|
|