Click here to Skip to main content
15,909,193 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using Using object disposal... Pin
TheTinSoldier18-Jul-07 12:54
TheTinSoldier18-Jul-07 12:54 
AnswerRe: Using Using object disposal... Pin
Luc Pattyn18-Jul-07 12:21
sitebuilderLuc Pattyn18-Jul-07 12:21 
GeneralRe: Using Using object disposal... Pin
BoneSoft18-Jul-07 12:28
BoneSoft18-Jul-07 12:28 
GeneralRe: Using Using object disposal... Pin
Luc Pattyn18-Jul-07 12:53
sitebuilderLuc Pattyn18-Jul-07 12:53 
GeneralRe: Using Using object disposal... Pin
Ed.Poore18-Jul-07 13:35
Ed.Poore18-Jul-07 13:35 
GeneralRe: Using Using object disposal... Pin
Luc Pattyn18-Jul-07 14:00
sitebuilderLuc Pattyn18-Jul-07 14:00 
GeneralRe: Using Using object disposal... Pin
Ed.Poore18-Jul-07 23:58
Ed.Poore18-Jul-07 23:58 
GeneralRe: Using Using object disposal... Pin
TheTinSoldier18-Jul-07 12:53
TheTinSoldier18-Jul-07 12:53 
Hi Luc.

In regards to your points:

1. I need to first open the port to call the IsOpen property. I am checking if the port is in use. (not by my application).

2. It would be nice to know if it does matter, as I'll do it your way if it's the right way

3. I get the feeling (from you and others) that even though the object will be disposed it wouldn't hurt to close it first.

4. This is interesting, I'd better check that out. I think for what I'm doing it should be ok.

Thanks to you and everyone for their help!
GeneralRe: Using Using object disposal... Pin
Luc Pattyn18-Jul-07 13:01
sitebuilderLuc Pattyn18-Jul-07 13:01 
GeneralRe: Using Using object disposal... Pin
TheTinSoldier18-Jul-07 13:08
TheTinSoldier18-Jul-07 13:08 
Questionmap a variable to it's SqlDbType correspondent Pin
Razvan Dimescu18-Jul-07 10:54
Razvan Dimescu18-Jul-07 10:54 
AnswerRe: map a variable to it's SqlDbType correspondent Pin
Ed.Poore18-Jul-07 13:38
Ed.Poore18-Jul-07 13:38 
GeneralRe: map a variable to it's SqlDbType correspondent Pin
Razvan Dimescu18-Jul-07 20:06
Razvan Dimescu18-Jul-07 20:06 
QuestionPopulating data in a form Pin
tthellebuyck18-Jul-07 10:23
tthellebuyck18-Jul-07 10:23 
AnswerRe: Populating data in a form [modified] Pin
TheTinSoldier18-Jul-07 11:26
TheTinSoldier18-Jul-07 11:26 
Questionneed API to send and recieve mail Pin
Mostafa_Ismail18-Jul-07 9:08
Mostafa_Ismail18-Jul-07 9:08 
AnswerRe: need API to send and recieve mail Pin
Dave Kreskowiak18-Jul-07 9:22
mveDave Kreskowiak18-Jul-07 9:22 
GeneralRe: need API to send and recieve mail Pin
Mostafa_Ismail18-Jul-07 9:24
Mostafa_Ismail18-Jul-07 9:24 
QuestionMake a button lose focus Pin
sharpiesharpie18-Jul-07 9:07
sharpiesharpie18-Jul-07 9:07 
AnswerRe: Make a button lose focus Pin
Colin Angus Mackay18-Jul-07 9:10
Colin Angus Mackay18-Jul-07 9:10 
GeneralRe: Make a button lose focus Pin
sharpiesharpie18-Jul-07 9:45
sharpiesharpie18-Jul-07 9:45 
GeneralRe: Make a button lose focus Pin
Wjousts18-Jul-07 10:20
Wjousts18-Jul-07 10:20 
AnswerRe: Make a button lose focus Pin
martin_hughes18-Jul-07 10:03
martin_hughes18-Jul-07 10:03 
GeneralRe: Make a button lose focus Pin
sharpiesharpie18-Jul-07 10:05
sharpiesharpie18-Jul-07 10:05 
GeneralRe: Make a button lose focus Pin
Luc Pattyn18-Jul-07 10:53
sitebuilderLuc Pattyn18-Jul-07 10:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.