m1013864
13 years agoOccasional Contributor
Funtion within USEUNIT getting called unnecessarily
We have a situation where all the function of a JScript unit e.g. Unit1 is getting executedwhile executing a function from seperate unit(this unit does not call any functions from Unit1 OR //USEUNIT Unit1 is not present any where in the target unit)
Example;
function test()
{}
If I write this function in any new Unit say Unit3 and execute it, then automatically all the functions from the problamatic unit Unit1 gets called and they get executed.
The errant Unit has all functions which serves different calls to data base for different set of conditions or queries.
this is increasing our execution time considerably.
Example;
function test()
{}
If I write this function in any new Unit say Unit3 and execute it, then automatically all the functions from the problamatic unit Unit1 gets called and they get executed.
The errant Unit has all functions which serves different calls to data base for different set of conditions or queries.
this is increasing our execution time considerably.