Forum Discussion
googleid_105613
12 years agoOccasional Contributor
I had a problem with ADO and my scripts crashing a few years ago, and I solved it by collecting my own garbage. Before I exit any function, I set all variables I created within the function to null, except for any outbound data.
Kinda like this:
function foo(inboundParam)
{
var a;
var b;
//do some tests
a=null;
return b;
}
I discovered this because I was reading something like 500,000 records from a database for data validation, and not cleaning up after myself.
Kinda like this:
function foo(inboundParam)
{
var a;
var b;
//do some tests
a=null;
return b;
}
I discovered this because I was reading something like 500,000 records from a database for data validation, and not cleaning up after myself.
Related Content
- 9 years ago
- 13 years ago
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 6 days ago