Community Page
- HuddledMasses.org/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Thanks for the plugins Jaykul! I'm using them on my website which I just migrated from textpattern to wordpress and they are working great... There is just one little problem I am having... It...
- I was able to download the wmv-hd and the powerpoint ones. I gathered info from www.microsoftpdc.com but it seems some formats are not available yet.
- Were you able to get anything aside from wmv to work, Joel?
- Hey Jaykul, I've got some experience with this that I'm happy to share. I've used a Tivo (and hacked it to add a larger hard drive), a Comcast DVR, a Windows XP Media Center with an...
- Hey Joel, Ars Technica is also live tweeting the keynotes here: http://twitter.com/arspdc
Huddled Masses
Joel Bennett's development blog...
Brandon and I have been talking a lot about error handling in #PowerShell (on irc.freenode.net) the last few weeks, going back and forth (and dragging half the other channel participants into the discussion) with examples and counter examples and trying to make sense of how itR
... Continue reading »
1 year ago
http://cashfoley.com/2007/10/13/TryFinallyCatch...
The origian post is by Adam Weigert at http://weblogs.asp.net/adweigert/archive/2007/1...
1 year ago
Actually, you can nest the Try-Finally-Catch blocks effectively.
There are a couple of side effects I've learned and I'll blog it in the near future. In short, whenever you use a scriptblock, you effectively creates a scope for variables. As a result, varibales created or changed in a Try Section are unavailable in the Finaly or Catch scriptblocks. This is not a big deal but it might need to be anticipated. Also, this is not a specific effect from Try-Finally-Catch. It happens with all scriptblocks. This is usually managed by "dotting" the script. I just haven't found a way to work it into the Try-Finally-Catch commandlet.
Cash Foley