Form using too much memory
-
In an application I am working on, I have a form that on startup, loads my addin structure and some other useful static classes. When I watch Task Manager during the form's startup, it starts up using 13500K of memory. If I minimize the form, it shoots down to 300K. Then when I restore it, it goes to only 1000K. If I start the form minimized, it still starts up taking 13500K. Then when I restore it, if jumps up 13600K. Then when I minimize it again, it drops back to 300K and up to 1000K when I restore it. Is there a way to avoid this form using so much memory on startup without having to minimize it and restore it? Thanks
-
In an application I am working on, I have a form that on startup, loads my addin structure and some other useful static classes. When I watch Task Manager during the form's startup, it starts up using 13500K of memory. If I minimize the form, it shoots down to 300K. Then when I restore it, it goes to only 1000K. If I start the form minimized, it still starts up taking 13500K. Then when I restore it, if jumps up 13600K. Then when I minimize it again, it drops back to 300K and up to 1000K when I restore it. Is there a way to avoid this form using so much memory on startup without having to minimize it and restore it? Thanks
Try using .NET framework 1.1 (This is assuming that you are using 1.0 under XP).
-
Try using .NET framework 1.1 (This is assuming that you are using 1.0 under XP).
I am using 1.0 under Windows 2000 professional. However, that arises another question, how do I change VS.NET 2002 to use 1.1 instead of 1.0?
-
I am using 1.0 under Windows 2000 professional. However, that arises another question, how do I change VS.NET 2002 to use 1.1 instead of 1.0?
You can't, but you can use the command line compiler csc.exe from the .NET Framework 1.1 (SDK not required but recommended) installation directory.
Microsoft MVP, Visual C# My Articles
-
I am using 1.0 under Windows 2000 professional. However, that arises another question, how do I change VS.NET 2002 to use 1.1 instead of 1.0?
Shaun Becker wrote: how do I change VS.NET 2002 to use 1.1 instead of 1.0? Unfortunately, you don't. VS.NET 2002 only works with v1.0 of the framework and VS.NET 2003 only works with v1.1. You'll have to upgrade if you want to use Visual Studio to compile for v1.1. There's nothing stopping you from compiling against v1.1 using the command-line compiler, though. Charlie if(!curlies){ return; }
-
You can't, but you can use the command line compiler csc.exe from the .NET Framework 1.1 (SDK not required but recommended) installation directory.
Microsoft MVP, Visual C# My Articles
Damn, you're too quick:-D Charlie if(!curlies){ return; }
-
Shaun Becker wrote: how do I change VS.NET 2002 to use 1.1 instead of 1.0? Unfortunately, you don't. VS.NET 2002 only works with v1.0 of the framework and VS.NET 2003 only works with v1.1. You'll have to upgrade if you want to use Visual Studio to compile for v1.1. There's nothing stopping you from compiling against v1.1 using the command-line compiler, though. Charlie if(!curlies){ return; }
-
You can make your apps writen in vs.net 2003 combabilitable with 1.0. Check the Projecr Properties->Common Properties->General->Suported Runtimes Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!
By, "works with", I meant "compiles to". Yes, you can specify in your app's config file that you'll support more then one version of the .NET framework (which VS.NET does for you when you change this field in Project Properties), but that doesn't guarantee that your app will actually work with that version. You're basically just telling the CLR that it's ok to run your app with the framework versions listed. The question I answered was about configuring VS.NET 2002 to compile to the v1.1 version of the framework, which cannot be done. Charlie if(!curlies){ return; }