471,618 Members | 1,195 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

A Memory leak in the dotnet UserControl ?

A Memory leak in the dotnet UserControl ?

Hi All,
I’ve tried to use the following “Host Secure, Lightweight Client-Side
Controls in Microsoft Internet Explorer” sample (I’d like to use a C# User
Control for a project):
http://msdn.microsoft.com/msdnmag/is...2/01/userctrl/

Everything seams working fine (the control is displayed, localhost is fully
trusted, …), but using the Windows Task Manager, each time I’m reloading the
page using the IE refresh button, I can see the IE process size growing and
growing...To do the test, I haven’t tried uploading files.

I’ve also tried to use a UserControl in IE, referencing it by a GUID, but
I’m facing the same problem (I’d like to have a control tightly integrated in
the web page, with a display area, buttons…, like an ActiveX or an applet).

Something else: each time I’m launching IE, a large delay is necessary to
reload the control in the page. Even checking the msdn article “Runtime Probe
Causes a Delay…”.
http://support.microsoft.com/default...b;en-us;814668
But it didn’t help me. A more detailed sample would be a good thing. I don’t
have this delay if I reference the control using a GUID.

Any Idea?
Thanks for suggestions
Loïc


Environment:
Project modifications: Timer removed
Visual Studio 2003
..NET Framework V1.1.4322
Server: Tomcat 5.5
Client: IE6.0.xxx
Userctrl.html
<html><body>

<OBJECT id="upload1"
classid="bin/Upload.dll#TestCorp.ClientControls.MultiUploadCtrl "
width=800 height=300 style="font-size:12;">
<PARAM Name="FileUploadURL"
Value="http://localhost/ServerFileUpload/UploadFile.aspx">
<PARAM Name="MaxSessionUpload"
Value="10646">
</OBJECT>

</body></html>

Jan 27 '06 #1
2 2328
I am not sure about the control but to know where exactly the memory leak
happens you can try the ".NET Memory profiler" or the RedGate's Memory
profiler. They come with trial versions and are supposedly good.

just my advice...
--
adi
"Loic" wrote:
A Memory leak in the dotnet UserControl ?

Hi All,
I’ve tried to use the following “Host Secure, Lightweight Client-Side
Controls in Microsoft Internet Explorer” sample (I’d like to use a C# User
Control for a project):
http://msdn.microsoft.com/msdnmag/is...2/01/userctrl/

Everything seams working fine (the control is displayed, localhost is fully
trusted, …), but using the Windows Task Manager, each time I’m reloading the
page using the IE refresh button, I can see the IE process size growing and
growing...To do the test, I haven’t tried uploading files.

I’ve also tried to use a UserControl in IE, referencing it by a GUID, but
I’m facing the same problem (I’d like to have a control tightly integrated in
the web page, with a display area, buttons…, like an ActiveX or an applet).

Something else: each time I’m launching IE, a large delay is necessary to
reload the control in the page. Even checking the msdn article “Runtime Probe
Causes a Delay…”.
http://support.microsoft.com/default...b;en-us;814668
But it didn’t help me. A more detailed sample would be a good thing. I don’t
have this delay if I reference the control using a GUID.

Any Idea?
Thanks for suggestions
Loïc


Environment:
Project modifications: Timer removed
Visual Studio 2003
.NET Framework V1.1.4322
Server: Tomcat 5.5
Client: IE6.0.xxx
Userctrl.html
<html><body>

<OBJECT id="upload1"
classid="bin/Upload.dll#TestCorp.ClientControls.MultiUploadCtrl "
width=800 height=300 style="font-size:12;">
<PARAM Name="FileUploadURL"
Value="http://localhost/ServerFileUpload/UploadFile.aspx">
<PARAM Name="MaxSessionUpload"
Value="10646">
</OBJECT>

</body></html>

Jan 27 '06 #2
I've tried it but it didn't help me a lot. Thx for the response.

"anadimpa" wrote:
I am not sure about the control but to know where exactly the memory leak
happens you can try the ".NET Memory profiler" or the RedGate's Memory
profiler. They come with trial versions and are supposedly good.

just my advice...
--
adi
"Loic" wrote:
A Memory leak in the dotnet UserControl ?

Hi All,
I’ve tried to use the following “Host Secure, Lightweight Client-Side
Controls in Microsoft Internet Explorer” sample (I’d like to use a C# User
Control for a project):
http://msdn.microsoft.com/msdnmag/is...2/01/userctrl/

Everything seams working fine (the control is displayed, localhost is fully
trusted, …), but using the Windows Task Manager, each time I’m reloading the
page using the IE refresh button, I can see the IE process size growing and
growing...To do the test, I haven’t tried uploading files.

I’ve also tried to use a UserControl in IE, referencing it by a GUID, but
I’m facing the same problem (I’d like to have a control tightly integrated in
the web page, with a display area, buttons…, like an ActiveX or an applet).

Something else: each time I’m launching IE, a large delay is necessary to
reload the control in the page. Even checking the msdn article “Runtime Probe
Causes a Delay…”.
http://support.microsoft.com/default...b;en-us;814668
But it didn’t help me. A more detailed sample would be a good thing. I don’t
have this delay if I reference the control using a GUID.

Any Idea?
Thanks for suggestions
Loïc


Environment:
Project modifications: Timer removed
Visual Studio 2003
.NET Framework V1.1.4322
Server: Tomcat 5.5
Client: IE6.0.xxx
Userctrl.html
<html><body>

<OBJECT id="upload1"
classid="bin/Upload.dll#TestCorp.ClientControls.MultiUploadCtrl "
width=800 height=300 style="font-size:12;">
<PARAM Name="FileUploadURL"
Value="http://localhost/ServerFileUpload/UploadFile.aspx">
<PARAM Name="MaxSessionUpload"
Value="10646">
</OBJECT>

</body></html>

Feb 1 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Miller | last post: by
3 posts views Thread by Bhargavan | last post: by
15 posts views Thread by Chetan Raj | last post: by
3 posts views Thread by Chris Botha | last post: by
6 posts views Thread by Dennis | last post: by
13 posts views Thread by Boni | last post: by
22 posts views Thread by Peter | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.