Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Closed Thread
Difference between close & null with regards to connection
Old 07-04-2012, 12:45 AM Difference between close & null with regards to connection
Banned

Posts: 3
Trades: 0
what is the difference between saying
con.close();
and
con=null;

Using first one is good or second one?
muzamel is offline
View Public Profile
 
 
Register now for full access!
Old 07-04-2012, 01:19 AM Re: Difference between close & null with regards to connection
lizciz's Avatar
Super Spam Talker

Posts: 845
Name: Mattias Nordahl
Location: Sweden
Trades: 0
I think we need a bit more context, but I'm gonna go with close(), since that suggests that you actually close the connectionen, whereas setting the variable to null will leave the connection open.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
View Public Profile Visit lizciz's homepage!
 
Old 07-04-2012, 06:18 AM Re: Difference between close & null with regards to connection
chrishirst's Avatar
Defies a Status

Posts: 44,046
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I wouldn't worry too much Mattius, I seriously doubt that the OP has any idea what it is asking about in any case.

http://www.coderanch.com/t/303708/JD...e-null-regards

It's just another sig link posting idibot
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « Reply to Difference between close & null with regards to connection
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19476 seconds with 11 queries