Click here to Skip to main content
15,899,679 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalforum Pin
mouadel6-May-10 17:07
mouadel6-May-10 17:07 
GeneralRe: forum Pin
Abhijit Jana6-May-10 19:59
professionalAbhijit Jana6-May-10 19:59 
GeneralRe: forum Pin
JHizzle6-May-10 22:32
JHizzle6-May-10 22:32 
GeneralRe: forum Pin
Abhijit Jana6-May-10 23:05
professionalAbhijit Jana6-May-10 23:05 
GeneralRe: forum Pin
Ankur\m/7-May-10 0:07
professionalAnkur\m/7-May-10 0:07 
GeneralRe: forum Pin
JHizzle7-May-10 0:46
JHizzle7-May-10 0:46 
GeneralRe: forum Pin
Ankur\m/7-May-10 1:01
professionalAnkur\m/7-May-10 1:01 
QuestionIs Memory Leak happening here. Pin
vjvjvjvj6-May-10 7:27
vjvjvjvj6-May-10 7:27 
Hi all,

In my project, Parent page opens a child page using window.open method on a button click.

Child page has a method LoadDropDownList() in page_load, which is supposed to populate a drop down list in the page. LoadDropDownList method creates an object of a class from the referenced library and calls a method on that object which performs some heavy operation to get strings and populate the dropdownlist. This takes around 3-4 seconds. I release the object in the finally{} block in this method.

Now, Even if my child page is closed using (X button) immediately after its opened (before 3 seconds), the loaddropdownlist method is already initiated.

After that I open the child and close it immediately for 3-4 times aproximately and then the next time parent page is unable to open child page . IE 7 just shows running status. Probably Server experiences some heavy load due to multiple LoadDropDownList ongoing runs in the stack.

Is memory leak is happening here?

Shouldn't it stop running child's LoadDropDownList() and get read of the objects immediately after I close the form? But it's not happening. I found control returns to this method multiple times after i (opened for number of times and) closed the form respectively.

What is the remedy here? How child should stop running any method in it after it's closed?


Kind regards,

Vijay
AnswerRe: Is Memory Leak happening here. Pin
T M Gray6-May-10 10:35
T M Gray6-May-10 10:35 
AnswerRe: Is Memory Leak happening here. Pin
Vimalsoft(Pty) Ltd6-May-10 10:46
professionalVimalsoft(Pty) Ltd6-May-10 10:46 
AnswerRe: Is Memory Leak happening here. Pin
Abhishek Sur6-May-10 13:58
professionalAbhishek Sur6-May-10 13:58 
Questionchange output format dynamic checkboxlist in asp.net/vb Pin
AsianRogueOne6-May-10 5:41
AsianRogueOne6-May-10 5:41 
AnswerRe: change output format dynamic checkboxlist in asp.net/vb Pin
AsianRogueOne6-May-10 6:03
AsianRogueOne6-May-10 6:03 
QuestionException thrown Pin
MaheshSharma6-May-10 5:04
MaheshSharma6-May-10 5:04 
AnswerRe: Exception thrown Pin
JHizzle6-May-10 5:19
JHizzle6-May-10 5:19 
AnswerRe: Exception thrown Pin
Not Active6-May-10 5:43
mentorNot Active6-May-10 5:43 
AnswerRe: Exception thrown Pin
Sandesh M Patil6-May-10 7:11
Sandesh M Patil6-May-10 7:11 
AnswerRe: Exception thrown Pin
daveyerwin6-May-10 7:18
daveyerwin6-May-10 7:18 
GeneralRe: Exception thrown Pin
Not Active6-May-10 8:16
mentorNot Active6-May-10 8:16 
Questionfor each loop for Repeater control Pin
Deb_266-May-10 4:17
Deb_266-May-10 4:17 
AnswerRe: for each loop for Repeater control Pin
Not Active6-May-10 5:46
mentorNot Active6-May-10 5:46 
QuestionAjax Editor control Pin
jitendrafaye5-May-10 23:30
jitendrafaye5-May-10 23:30 
AnswerRe: Ajax Editor control Pin
Peace ON5-May-10 23:49
Peace ON5-May-10 23:49 
GeneralRe: Ajax Editor control Pin
jitendrafaye6-May-10 2:43
jitendrafaye6-May-10 2:43 
AnswerRe: Ajax Editor control Pin
Jamil Hallal6-May-10 1:41
professionalJamil Hallal6-May-10 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.