Click here to Skip to main content
15,896,456 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionSocket Recieve problem Pin
ganesh_IT15-Nov-10 2:56
ganesh_IT15-Nov-10 2:56 
AnswerRe: Socket Recieve problem Pin
Abhinav S15-Nov-10 3:12
Abhinav S15-Nov-10 3:12 
GeneralRe: Socket Recieve problem Pin
ganesh_IT15-Nov-10 3:33
ganesh_IT15-Nov-10 3:33 
AnswerRe: Socket Recieve problem Pin
Luc Pattyn15-Nov-10 3:55
sitebuilderLuc Pattyn15-Nov-10 3:55 
AnswerI say this so often that I get tired of saying it Pin
Ennis Ray Lynch, Jr.15-Nov-10 8:22
Ennis Ray Lynch, Jr.15-Nov-10 8:22 
QuestionVisual Studio Testing memory leaks? [modified] Pin
springjazzy15-Nov-10 0:41
springjazzy15-Nov-10 0:41 
AnswerRe: Visual Studio Testing memory leaks? Pin
GlobX24-Nov-10 14:14
GlobX24-Nov-10 14:14 
GeneralRe: Visual Studio Testing memory leaks? Pin
springjazzy25-Nov-10 20:34
springjazzy25-Nov-10 20:34 
Sure. Here it is:

[TestClass]
public class SS_Identity_Types_Edit_Tests : TestsVS
{
	SS_Identity_Types_FullEdit_Form view = null;
	
	[TestInitialize] public override void RunBeforeAllTests()
	{
		base.RunBeforeAllTests();
                view = new SS_Identity_Types_FullEdit_Form(this.basicWindow.DS);
            	PrepareEditForm(view, GetNamedContextOrCreate("SS_Identity_Types", false), false);
		view.IsRunLoadActions = false;
		view.Visible = true;
		view.Visible = false;
	}

	[TestMethod] public void TestPrerequisites()
	{
		Assert.IsNotNull(view);
	}

	[TestCleanup] public override void RunAfterAllTests()
	{
		view.Close();
		view = null;
		base.RunAfterAllTests ();
	}
}


it inherits from sthm like this:

[TestInitialize()]
public virtual void RunBeforeAllTests()
{
    basicWindow = DoCreateMainWindow();
        DoActionsOnLoad();
        basicWindow.LoadDataFromDataBase();
}

    [ClassCleanup]
    public static void ClassCleanup()
    {
// Here is commented bacause it really doesn't help
        //try
        //{
        //    System.GC.Collect();
        //}
        //catch
        //{
        //}
    }

    [TestCleanup()]
    public virtual void RunAfterAllTests()
    {
        InvokePrivateMethod(basicWindow, new object[] { new EventArgs() }, "OnClosed");
        this.basicWindow.Close();
        this.basicWindow = null;
    }


I'm pretty sure there are leaks, but I can't get how to find them. As i've said JetBrains attached to test process doesn't show my classes, so, obviousely, I do sthm wrong in my profiling.
QuestionUpload Videos To YouTbe using PROXY - Gdata Pin
sodevrom13-Nov-10 12:34
sodevrom13-Nov-10 12:34 
QuestionC# + Java Pin
sadas232341s10-Nov-10 8:03
sadas232341s10-Nov-10 8:03 
AnswerRe: C# + Java Pin
Richard MacCutchan10-Nov-10 9:13
mveRichard MacCutchan10-Nov-10 9:13 
GeneralRe: C# + Java [modified] Pin
sadas232341s10-Nov-10 9:26
sadas232341s10-Nov-10 9:26 
GeneralRe: C# + Java Pin
Richard MacCutchan10-Nov-10 9:45
mveRichard MacCutchan10-Nov-10 9:45 
AnswerRe: C# + Java Pin
dan!sh 10-Nov-10 9:54
professional dan!sh 10-Nov-10 9:54 
AnswerRe: C# + Java Pin
Abhinav S11-Nov-10 7:38
Abhinav S11-Nov-10 7:38 
AnswerRe: C# + Java Pin
Eddy Vluggen11-Nov-10 10:16
professionalEddy Vluggen11-Nov-10 10:16 
Question32 bits 3. party library in a 64 bits server. Pin
Frode Sætre10-Nov-10 4:00
Frode Sætre10-Nov-10 4:00 
AnswerRe: 32 bits 3. party library in a 64 bits server. Pin
Pete O'Hanlon10-Nov-10 10:58
mvePete O'Hanlon10-Nov-10 10:58 
GeneralRe: 32 bits 3. party library in a 64 bits server. Pin
Frode Sætre10-Nov-10 23:07
Frode Sætre10-Nov-10 23:07 
GeneralRe: 32 bits 3. party library in a 64 bits server. Pin
Luc Pattyn11-Nov-10 0:00
sitebuilderLuc Pattyn11-Nov-10 0:00 
QuestionReflectionTypeLoadException during MEF composition Pin
Phil J Pearson10-Nov-10 1:59
Phil J Pearson10-Nov-10 1:59 
QuestionCreating employee leave management system in C#.net using mysql database Pin
sr15910-Nov-10 0:56
sr15910-Nov-10 0:56 
AnswerRe: Creating employee leave management system in C#.net using mysql database Pin
Pete O'Hanlon10-Nov-10 1:02
mvePete O'Hanlon10-Nov-10 1:02 
GeneralRe: Creating employee leave management system in C#.net using mysql database Pin
sr15910-Nov-10 1:27
sr15910-Nov-10 1:27 
GeneralRe: Creating employee leave management system in C#.net using mysql database Pin
Dave Kreskowiak10-Nov-10 2:13
mveDave Kreskowiak10-Nov-10 2:13 

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.