Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

springjazzy

@springjazzy
About
Posts
15
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Visual Studio Testing memory leaks? [modified]
    S springjazzy

    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.

    .NET (Core and Framework) help question csharp visual-studio testing

  • Visual Studio Testing memory leaks? [modified]
    S springjazzy

    Hi ) Sorry for my English ( I hope you can help me with this: We created 1000+ tests in our solution. The problem is that they can't be run all in one batch - VSTestHost process simply dies with System.OutOfMemoryException. That's because it is 32 bit process and when it exceeds 2GB it dies. Ok.. Now the question is why is it happens? I've tried to profile testlist with 3-4 tests with JetBrains in order to find memory leaks. By the way - did anyone do such thing? I've created .bat-file with MsTest.exe. Then in [TestInitialize()] i've added MessageBox.Show("Start"); and began to make snapshots when this dialogbox appeared. The magic is that there are no memory leaks(+2000 bytes - almost no), but also there are no our classes. So, obviously, what I do to find memory leaks is wrong. I see that VSTestHost process eats a lot of memory with each passing test. Even 50 tests kills process with Memory exception. So did anyone encountered such problem? And how to profile VsTestHost on memory leaks? Maybe you can advise me where can I post this message to get an answer?

    modified on Tuesday, November 16, 2010 2:08 AM

    .NET (Core and Framework) help question csharp visual-studio testing

  • VS 2008 gaining tests..
    S springjazzy

    That's nice. Now I can do unit testing with my favorite NUnit 8). VS2005 made me work with that terrible integrated unit testing system. Now all in right places again. NUnit is MUCH faster... But I still hope that Microsoft will improve their unit testing in VS2008....Норе is a good breakfast, but a bad supper.

    The Lounge asp-net csharp visual-studio wpf com

  • WhoDunIt: accessing Drive A:
    S springjazzy

    Maybe somebody shared Drive A in network with description "Interesting Films" 8)

    The Lounge csharp com windows-admin regex help

  • I pray the Lord my Soul to Keep...
    S springjazzy

    Try to search forums with title sthm like this "How to Program in Access and not go Insane". Or try to search more popular version of such forum "Harry Potter and How to Program in Access and not go Insane". 8)

    The Lounge question

  • php IDE
    S springjazzy

    I don't know. But I guess this problem may be easily solved by having the latest Zend Studio and not so latest php version, because Zend can't keep up with php in speed of version development.

    The Lounge php visual-studio com tools question

  • php IDE
    S springjazzy

    Excellent IDE. But... There is one problem. You may encounter problems with compatibility of PHP version and some dll's (i can't remember them) that are responsible for obfuscating php code. As a result of this, you wouldn't be able to run ZendStudioServer and wouldn't be able to debug code. So consider this. Anyway, Zend Studio is just great for php programming.

    The Lounge php visual-studio com tools question

  • Team System Source Control problem
    S springjazzy

    Hi 8). There is a problem with Version Control system of Team System. Suppose, I have two team projects ProjectA & ProjectB. Because of some circumstances, I need reference from project in ProjectA to project in ProjectB, and also I need reference from ProjectB to project in ProjectA. I do "Add project from source control". Everything works just fine... on my PC. Other people experience problems with paths - VS2005 searches for projects in paths that I have on my PC. I thought that WorkSpaces would be decision, but is didn't work. So what do you suggest? 8)

    Visual Studio collaboration help question announcement

  • VS2005 makes me mad
    S springjazzy

    Yes, I'm already thinking about buying supercomputer to work with VS2005... I wonder if I could turn off some feats in VS2005... I hope it wouldn't turn into notepad after that... 8)

    The Lounge testing beta-testing performance question workspace

  • VS2005 makes me mad
    S springjazzy

    Look, if you using NUnit, maybe you could help me? 8) I have problems with bindings in my tests. It looks like controls are filled with values from datasource only when they are visible. So when I need to check some control for data in it, I am forced to make form visible for a while. I think that this is a not very good idea. Maybe you had same problems? If you did, could you please tell how you solved it. 8)

    The Lounge testing beta-testing performance question workspace

  • VS2005 makes me mad
    S springjazzy

    You are absolutely right. When I press Run Test I can go and make myself tea... So i go...

    The Lounge testing beta-testing performance question workspace

  • VS2005 makes me mad
    S springjazzy

    Damn it! It is sooo slow! 8( I am testing my application in NUnit. I do "attach to process" to do some debugging. This action took me about 5 seconds in VS2003. Now I can read all postings in this forum before VS2005 reply sthm to my action. I have 1 GB of memory, Pentium 4 3.00 Hz with HT - is this configuration too bad for VS2005?

    The Lounge testing beta-testing performance question workspace

  • WHY NEWTON COMMITTED SUICIDE
    S springjazzy

    8)). I cant watch these films without smile. Well you know there is a phrase that if a gun is hanged on somewhere at the theatre's stage, then at the end of the perfomance it's gonna shoot. Paraphrasing it according to Indian films, gun will dance at the end of the film.

    The Lounge database adobe game-dev question

  • It's Friday!
    S springjazzy

    I'll go skiing 8). Have a nice weekend! 8)

    The Lounge com question

  • TDD Advice
    S springjazzy

    Hi. I'm using TDD 1 year already & discovered its importance not by rumors, so you are on the right way. From my experience(not so great experience of course - only 1 year) I can say that it would be great if you would just test each form on opening, closing and saving (if you have any forms of course 8)). These litte tests will help get rid of overwhelming majority of bugs & errors. Especially when you are dealing with applications working with databases. Good luck!

    The Lounge testing design business beta-testing tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups