.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

PropertyStore prevents GarbageCollection

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :.NET Framework
Hello I am trying to find a MemoryLeak in my application. I found that a an instance CMI.Client.Main.ReportFormstays in memory, despite the fact that I removed all references to it. All references? nope. My memory profiler tells me that there is still a reference to the form, but I have no idea how this reference came into existence, nor how to remove it. JetBrains dotTrace shows me the following "Shortest Root Path": CMI.Client.Main.ReportForm    System.Windows.Forms.PropertyStore.ObjectEntry[]       System.Windows.Forms.PropertyStore          CMI.Client.Main.MainForm             CMI.Client.Main.MainForm                ApplicationDomain "Default Domain"   Oh yes, I performed a GC.Collect(2) before taking the memory snapshot. Any ideas? Matthias  

View Complete Post

More Related Resource Links

Backup keeps failing and prevents another job from running

I have been trying to backup 6 Databases on an External harddrive but it keeps failing each time and preventing another job from running (the other job runns every 30 mins) is there another way that I should perform backup. Thank you in advance. 

Auth. across subdomains prevents Auth. on development machine

Is there any solution to the following scenario (which I'm in right now)...? I have 2 related websites under 2 related but distinct subdomains, 1 web server, 1 membership database Prior to configuring  these for cross-domain login, I could test the website in my development server that comes with VS2008. Then i make the following changes in the web configs of each site: identical authentications->forms element, both referencing the same domain identical machinekey elements identical membership, profile, and role providers with applicationName="/" And now, I just can't login. I can reset the password, access the db, etc, but i think because the development machine isn't in the subdomain or something, it won't let me test the rest of the authenticated-users-only pages. It's a very simple test I'm trying to do. There's very few pages, and a barebones webconfig in each, except for the elements inserted above. How can I get this to work so that I can test/debug from my development machine and still login and do everything I need to?  Thanks!

Bug? OnClick event prevents postback on CommandField BUTTONs


This has been asked a few times before but I can't find a definitive answer.  If I have a delete button in a commandField and programmatically add an OnClick javascript confirm, then the page never posts back after the dialog appears.  When using the same approach using a LINKBUTTON, everything works perfectly.  Is there any way to get this functionality to work using BUTTONs??

This works fine (using a LINKBUTTON):

<asp:CommandField Visible="false" ItemStyle-Width="150" ButtonType="Link" ShowDeleteButton="true" DeleteText="Delete" />

Sub gvRowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.RowState = DataControlRowState.Normal OrElse e.Row.RowState = DataControlRowState.Alternate Then
e.Row.RowState = 0 OrElse e.Row.RowState = 1 Th

app.manifest prevents TraceSource from tracing (on Windows Server 2003)


I'm using the TraceSource class to trace to a text file.  Everything is fine if my application doesn't have an app.manifest.  After adding an app.manifest and recompiling the application no longer creates the trace file on Windows Server 2003.

Here's how I'm using the TraceSource:

TraceSource traceSource = new TraceSource("TraceSourceTest");

traceSource.TraceEvent(TraceEventType.Information, 0, "test");

Here's the system.diagnostics section from my app.config:
  <trace autoflush="true" indentsize="2"/>
    <source name="TestTraceSource" switchValue="All">
        <add name="TextFileListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="TestTraceSource.log"/>

Here's what I have in my app.manifest:
<?xml version="1.0" encoding="ut
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend