p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Essentials section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 14th, 2009, 09:02 PM
Friend of Wrox
Points: 797, Level: 10
Points: 797, Level: 10 Points: 797, Level: 10 Points: 797, Level: 10
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Jun 2005
Location: , , United Kingdom.
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Default IO Disposing

Hi all,

When using the:
Code:
IO.Directory.CreateDirectory("C:\Temp")
To create the Temp directory, you can't add another line below accessing he directory because the IO.Directory.CreateDirectory hasn't released the resources!

Same with geting directory listings and stuff.

See when I search a removable medium for files and right after its done I want to safely remove my drive it can't because its still in use, so when i close my form down, then it will allow me to remove the device. This is because when my form is shutdown it releases all resources being used, so how do i do that in my program!

Cheers
__________________
Apocolypse2005, I'm a programmer - of sorts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importants of disposing of objects Apocolypse2005 Pro Visual Basic 2005 3 March 11th, 2009 12:25 PM
Disposing / Releasing objects yamyam C# 5 February 17th, 2006 04:06 AM
Correctly disposing dynamically created controls simarik C# 2 December 20th, 2005 08:49 PM
Disposing a WinForm in Excel Bowmangotti VB.NET 2002/2003 Basics 0 October 5th, 2004 11:13 PM
Disposing of a database? whamama BOOK: Professional VB.NET, 2nd Edition or 2003 1 January 7th, 2004 08:13 PM



All times are GMT -4. The time now is 07:11 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc