Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 MOD Memory Leaks
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

Etymon
Advanced Member

United States
2385 Posts

Posted - 11 September 2002 :  15:52:18  Show Profile  Visit Etymon's Homepage
quote:
Originally posted by @tomic

I recommend subscribing to www.asptoday.com($20 for 3 months) and reading Wrox Press books. Wrox has the easiest to understand explanations i have ever seen.

@tomic



Ruirib also has referenced these books in posts here at Snitz.

I'll go check out www.asptoday.com also.

Thanks for the tips, @tomic!


Etymon
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 13 September 2002 :  16:28:39  Show Profile  Visit Etymon's Homepage

Below is listed a basic introduction to "Applications, Sessions, and Global.asa". It references session objects and why there is need to close them along with a nice little introduction into ASP. Perhaps it is at the novice level, but it is a good article still.

http://www.asp101.com/resources/apps_sessions_gasa.asp

Etymon
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 13 September 2002 :  19:08:33  Show Profile
This is a good resource link

http://msdn.microsoft.com/library/default.asp?URL=/library/en-us/dnasp/html/ASPtips.asp

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 13 September 2002 :  20:29:09  Show Profile  Send e3stone an AOL message
I found the article that Doug posted very helpful, but...

From the article in the previous post:

"For truly high-performance sites that must be concerned about browser 'reach,' a good strategy is to optimize pages for the popular browsers. Browser features can be easily detected in ASP using the Browser Capabilities Component. Tools such as Microsoft FrontPage can help you design code that works with the browsers and HTML versions you wish to target."

I've found that FrontPage just messes up my pages. If that article wasn't on Microsoft's site, it would say:

"Using W3 compliant code can help you design pages that should work in all browsers, if the manufacturer would design them correctly"

<-- Eric -->
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 13 September 2002 :  20:41:46  Show Profile
Don't blame the tools :)

There are option settings in FP that keep your html cross-browser compatible, but you have to turn on that option. Otherwise nothing but your knowledge will keep you from making a page that isn't cross-browser capable.

Keep in mind there is a very large user base that doesn't care about, or even desire, cross-browser web pages. Many, many corporate intranets use IE and IIS/Frontpage specific features and love it.


======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 13 September 2002 :  20:47:39  Show Profile
quote:
Originally posted by e3stone

"Using W3 compliant code can help you design pages that should work in all browsers, if the manufacturer would design them correctly"
W3 compliant code is restrictive. There are quite a few features that IE has that makes your site more user-friendly. Microsoft is an innovator. It's really too bad that so many people are intent on being against them, instead of being for them. (one example is the code that is used on the post.asp page when composing a new topic/reply, this is IE specific)
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 13 September 2002 :  21:16:53  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
quote:
(one example is the code that is used on the post.asp page when composing a new topic/reply, this is IE specific)


Is this cross-platform? I am by no means anti-Microsoft but IE does have an advantageous position because they also make Windows.

@tomic

SportsBettingAcumen.com
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 16 September 2002 :  04:31:30  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by @tomic

quote:
I've found several MODs that set rs=nothing, but don't rs.close first.


Yes. I found lots of those. I would check every page of every MOD to be safe.

@tomic



it is not allways possible to do a recordset.close before setting it to nothing, it depends how the recordset was opened and what happened when it was opened, it is the setting to nothing which is important in preventing memory leeks.

trying to close a recordset that is not open will cause your page to error, so be very carefull about sticking them in just because you think it should have one
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 16 September 2002 :  04:56:25  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
quote:
trying to close a recordset that is not open will cause your page to error, so be very carefull about sticking them in just because you think it should have one


That is absolutely true it can be very tricky but also quite worthwhile if done correctly.

@tomic

SportsBettingAcumen.com
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 16 September 2002 :  05:05:05  Show Profile
quote:
Originally posted by @tomic

quote:
(one example is the code that is used on the post.asp page when composing a new topic/reply, this is IE specific)


Is this cross-platform? I am by no means anti-Microsoft but IE does have an advantageous position because they also make Windows.

@tomic

I was talking about the code that allows you to insert code/smilies anywhere in the post. I've never used IE on any other platform, except for Windows, so I don't know.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 16 September 2002 :  05:06:15  Show Profile  Visit HuwR's Homepage
quote:

That is absolutely true it can be very tricky but also quite worthwhile if done correctly.


Well that really depends on what the rest of your page does, if you r whole page is taking 0.2 seconds to process, closing a recordset in the middle or the end really won't have that much effect, but if it is a large page then obviously it will.
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 16 September 2002 :  05:08:41  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
I am more worried about the recordset never being destroyed at all than as soon as possible although the sooner the better.

@tomic

SportsBettingAcumen.com
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 16 September 2002 :  05:11:29  Show Profile  Visit HuwR's Homepage
I am not speaking of destroying it, you can do that whenever you wish by setting it to nothing, it is closing them that you should be careful about, since the recordset may not be open.
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 16 September 2002 :  05:16:00  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
quote:
I am not speaking of destroying it, you can do that whenever you wish by setting it to nothing, it is closing them that you should be careful about, since the recordset may not be open.


Absolutely.

2tomic

SportsBettingAcumen.com
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 16 September 2002 :  08:00:36  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
quote:
it is closing them that you should be careful about, since the recordset may not be open.


I've had this happen before where I'd try to close something when it wouldn't be open even though there was no close statement on the page. This seems to happen with UPDATE statements in particular. Do updates automatically close the recordset or am I missing something?


Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07