Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Error Adding New Member
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error Adding New Member

 Post Reply Post Reply Page  <12
Author
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2005 at 9:53pm

*note to self*

must remember to do that... LOL

 
perhaps a dumb question, but what exactly does leaving the connections hanging actually do? i know its bad, but not why... Embarrassed
Back to Top
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2005 at 5:46am
Thanks buddies,
 
I have found the error. Is from my database tbls, the strConfirm = RandomPW(0)  suppose to be a Text field in my database tbl but i mistakely used Number field instead of Text that is the reason the error occured.
 
But, is there any of my connection left hanging?
 
LOL
NgWebDesigns
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2005 at 7:09pm
Connections come from a pool and there's only so many to go around for all the sites hosted on the server. They'll attempt to clean themselves up after some period of inactivity but sometimes they don't release the memory they use.

With 500 other sites on a machine all opening and closing connections you don't have to run a script that leaves connections hanging very many times before iis has to reset. Problem occurs more often if you're developing online.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2005 at 7:16pm
*fixes programs* Embarrassed
 
is it just connections or recordsets (the object, i'm not quite lazy/forgetful enough to forget vrec.close) and the like as well?
 
also, to continue my hijacking of this thread, is there a way to close connections similar to opening them with a server side include? or can ssi's only be used at the start of a file?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2005 at 4:39am
You can put an ssi anywhere. You just have to be careful with the asp open and close tags - <% and %>.
If your ssi code has them you'll have to put close %> before the ssi then open <% after the ssi.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2005 at 5:08am
Can you pin point the connections that is left hanging. I think i close all my connection by using this
 
Set rsNew = nothing.
 
Or they any other way of doing that?
NgWebDesigns
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2005 at 5:16am
your connections were ok... it would have only happened if you used response.end before closing the connections.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2005 at 5:23am
can you tell me the differences between
 
Set rsNew = nothing
and
rsNew.Close
 
 
NgWebDesigns
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.