Last post Jul 06, 2009 09:14 AM by sandeepthekka
Jul 05, 2009 07:39 AM|sandeepthekka|LINK
iam using a module in my web application
am getting a dead lock when calling some funciton .
what i read from an article is clr will convert module funcitons to shared function. possibly the variables inside the function.
Whether thats the issue using modules...
This is from where i got this ..
Jul 06, 2009 03:14 AM|stevew1975|LINK
Variables defined in the module (outside functions i believe) will be global to everybody.
As seen from past experience, this becomes a nightmare especially when dealing with objects.
It should be ok if all of your variables are local to a function, but it is still best to only do very simple functions if you are going to use this.
The best bet would be to create another class and make it static. add all of your functions into this and make them static. This will ensure that the variables are per user and not global to all users.
Jul 06, 2009 09:14 AM|sandeepthekka|LINK
i knew if variables declared in shared functin seperate instance will be created for each caller.
My doubt is like when a module is converted to shared by CLR it will convert functions to shared.
Whether it will convert local variables inside function to shared or not..
Means only one memory location of that vaiable if its so.