japp, ha med det också, så du förstör objektet.
RecSet.Close
Set RecSet = nothing
Connect.Close
Set Connect=nothing
mvh,
------------------
<A HREF="http://cartman.nu" TARGET=_blank>
nobody expects the spanish inquisition!</A>
14 svar · 294 visningar · startad av Lukaspojken
När jag avslutar mina DB fråga så skriver jag...
RecSet.Close
Connect.Close
Jag minns att jag sett nånstans
RecSet = nothing
eller något liknande...ska man ta med det också?
japp, ha med det också, så du förstör objektet.
RecSet.Close
Set RecSet = nothing
Connect.Close
Set Connect=nothing
mvh,
------------------
<A HREF="http://cartman.nu" TARGET=_blank>
nobody expects the spanish inquisition!</A>
Du kan gott skippa det redundanta
Set rs = Nothing
------------------
For seeing life is but a motion of limbs,* the beginning whereof is in some principal part within; why may we not say, that all automata (engines that move themselves by springs and wheels as doth a watch) have an artificial life?
städa alltid bort objekten när de är använda:
RecSet.Close
Set RecSet = nothing
Connect.Close
Set Connect = nothing
alla 4 (ska) bör vara med
mvh jörgen
------------------
*** Det brukar lösa sig sade hon som satt och sket i vasken ***
[Redigerat av jorgen den 12 maj 2001]
Ja du kan gott skippa båda.
Set RecSet = nothing
Set Connect = nothing
------------------
For seeing life is but a motion of limbs,* the beginning whereof is in some principal part within; why may we not say, that all automata (engines that move themselves by springs and wheels as doth a watch) have an artificial life?
Vad är nackdelarna att inte ta med det?
herman, förklara?
------------------
<A HREF="http://cartman.nu" TARGET=_blank>
nobody expects the spanish inquisition!</A>
I praktiken ingen nackdel.
------------------
For seeing life is but a motion of limbs,* the beginning whereof is in some principal part within; why may we not say, that all automata (engines that move themselves by springs and wheels as doth a watch) have an artificial life?
Det man tjänar på att förstöra objekten direkt i ASP-sidan är lite minne som ändå förstörs efter att ASP-skriptet körts färdigt. Dvs. du får tillbaka minnesresurser ngt tidigare - kanske 10ms :)
------------------
For seeing life is but a motion of limbs,* the beginning whereof is in some principal part within; why may we not say, that all automata (engines that move themselves by springs and wheels as doth a watch) have an artificial life?
varför ska man inte skippa .close också då?
------------------
<A HREF="http://cartman.nu" TARGET=_blank>
nobody expects the spanish inquisition!</A>
För att både Connection och Recordset kan ha en aktiv koppling till databasen som då inte vet att sidan är klar. Dvs. man ger inte databasen en signal att släppa resurserna.
------------------
For seeing life is but a motion of limbs,* the beginning whereof is in some principal part within; why may we not say, that all automata (engines that move themselves by springs and wheels as doth a watch) have an artificial life?
gutes, då har vi rett ut det! :)
------------------
<A HREF="http://cartman.nu" TARGET=_blank>
nobody expects the spanish inquisition!</A>
[Redigerat av @nders den 12 maj 2001]
Så lite minne kan man spara...det blir nog den lösningen då för min del...:)
Om man låt oss säga har 3 sidor som använder samma databaskoppling. Är det nödvändigt att använda sig av connect.close och set connect = nothing. Eftersom jag ändå öppnar databasen på nästa sida. Förstår ni vad jag menar ?
------------------
1 Man, 1 Million dead, The odds are just about even - Ash