P
Piotrek
Hi all.
I have a web app, in which I use frames. My main frameset consists of
three inner frames.
When some button is pressed in frame A, then content of frame B is
reloaded. I am using such code to achieve this:
string strRedirect;
strRedirect = "<script language='Javascript'>";
strRedirect += "parent.body.location.href='WFSearchResult.aspx';";
strRedirect += "</script>";
Response.Write(strRedirect);
I noticed that there are memory leaks in my app. I used .NET Memory
Profiler to trace them and I discovered that usage of memory increases
when content of some frame is loaded - I had a breakpoint on PageLoad
method in all frames, but usage of memory increasead after
Response.Write code and before PageLoad of frame.
So I think that old content of frame is not released and that is the
cause of memory leak.
Does anybody know some method to prevent memory leaks in situation I
described? Maybe there is some way I can get to the old frame and
dispose it?
Thanks in advance,
Piotrek
I have a web app, in which I use frames. My main frameset consists of
three inner frames.
When some button is pressed in frame A, then content of frame B is
reloaded. I am using such code to achieve this:
string strRedirect;
strRedirect = "<script language='Javascript'>";
strRedirect += "parent.body.location.href='WFSearchResult.aspx';";
strRedirect += "</script>";
Response.Write(strRedirect);
I noticed that there are memory leaks in my app. I used .NET Memory
Profiler to trace them and I discovered that usage of memory increases
when content of some frame is loaded - I had a breakpoint on PageLoad
method in all frames, but usage of memory increasead after
Response.Write code and before PageLoad of frame.
So I think that old content of frame is not released and that is the
cause of memory leak.
Does anybody know some method to prevent memory leaks in situation I
described? Maybe there is some way I can get to the old frame and
dispose it?
Thanks in advance,
Piotrek