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

.NET (Core and Framework)

 
QuestionProblem Publishing with Visual Studio 2005 Pin
kayhustle16-Mar-06 8:56
kayhustle16-Mar-06 8:56 
QuestionIP Cameras Pin
programmingfish15-Mar-06 20:54
programmingfish15-Mar-06 20:54 
AnswerRe: IP Cameras Pin
xlthim15-May-07 9:52
xlthim15-May-07 9:52 
QuestionClicking *Through* a Form? Pin
TheZeusJuice15-Mar-06 16:38
TheZeusJuice15-Mar-06 16:38 
AnswerRe: Clicking *Through* a Form? Pin
Dave Kreskowiak15-Mar-06 17:35
mveDave Kreskowiak15-Mar-06 17:35 
GeneralRe: Clicking *Through* a Form? Pin
TheZeusJuice15-Mar-06 17:48
TheZeusJuice15-Mar-06 17:48 
GeneralRe: Clicking *Through* a Form? Pin
Dave Kreskowiak16-Mar-06 2:35
mveDave Kreskowiak16-Mar-06 2:35 
QuestionFree RAM as by minimize without displaying window Pin
mewashere15-Mar-06 11:57
mewashere15-Mar-06 11:57 
Hello!

Using VS.NET 2003, C++ .NET Form project. I'm beginner to .NET and Win
programming so even if my question is stupid please bear with it.

I'm having problems with starting a program minimized. In theory it's done
easily by setting the WindowState property of the main form to 'Minimized' in
the designer. But that's not all.

Take a very simple VS.NET 2003 C++ project of 1 Form and a few other
controls (say, 1 ContextMenu, 2 MenuItems, 1 NotifyIcon and 1 ICOn resource
file), NO manually added code. When run normally (not minimized), this takes
9-10M RAM (seen in Task Explorer, has ~8M working set in a more thorough
process explorer). A minimize reduces the RAM usage to ~1M. Another restore,
and it uses 2-3M again. Yet another minimize and a footprint of 0.8-0.9M is
reached. No, it doesn't go any further, unfortunately. And there's no
significant difference between a 'release' and a 'debug' build, both start
with huge footprints.

My problem is this: when starting the application minimized, it takes up
9-10M, until I restore/minimize it a few times. So starting it minimized
doesn't reduce the memory usage, but showing the window and minimizing it
afterwards does. Putting the 'WindowState=Minimized' command in the Load or
focus-related events in order to have it immediately minimized doesn't help
(application starts minimized, memory usage remains). Initiating garbage
collection is without effect.

Any ideas, how I could mimic the effects of a 'minimize' without having to
actually display the window? Is there any way to tell the framework
explicitly to drop unneeded memory regions?

AnswerRe: Free RAM as by minimize without displaying window Pin
Glaxalg15-Mar-06 17:35
Glaxalg15-Mar-06 17:35 
AnswerRe: Free RAM as by minimize without displaying window Pin
Robert Rohde15-Mar-06 17:41
Robert Rohde15-Mar-06 17:41 
GeneralRe: Free RAM as by minimize without displaying window Pin
mewashere16-Mar-06 3:03
mewashere16-Mar-06 3:03 
GeneralRe: Free RAM as by minimize without displaying window Pin
Dave Kreskowiak16-Mar-06 15:11
mveDave Kreskowiak16-Mar-06 15:11 
QuestionPPTP through code Pin
xibalbasd15-Mar-06 10:24
xibalbasd15-Mar-06 10:24 
QuestionWhere to start? Pin
ComplexLifeForm15-Mar-06 5:43
ComplexLifeForm15-Mar-06 5:43 
AnswerRe: Where to start? Pin
TheZeusJuice15-Mar-06 17:27
TheZeusJuice15-Mar-06 17:27 
GeneralRe: Where to start? Pin
ComplexLifeForm15-Mar-06 21:27
ComplexLifeForm15-Mar-06 21:27 
GeneralRe: Where to start? Pin
TheZeusJuice16-Mar-06 4:54
TheZeusJuice16-Mar-06 4:54 
GeneralRe: Where to start? Pin
Kevin McFarlane17-Mar-06 10:39
Kevin McFarlane17-Mar-06 10:39 
GeneralRe: Where to start? Pin
Kevin McFarlane17-Mar-06 10:45
Kevin McFarlane17-Mar-06 10:45 
Questionnewbie question..plz help Pin
sunny74715-Mar-06 1:18
sunny74715-Mar-06 1:18 
AnswerRe: newbie question..plz help Pin
CWIZO15-Mar-06 2:31
CWIZO15-Mar-06 2:31 
GeneralRe: newbie question..plz help Pin
sunny74715-Mar-06 3:39
sunny74715-Mar-06 3:39 
GeneralRe: newbie question..plz help Pin
Dave Kreskowiak15-Mar-06 5:45
mveDave Kreskowiak15-Mar-06 5:45 
GeneralRe: newbie question..plz help Pin
sunny74715-Mar-06 7:40
sunny74715-Mar-06 7:40 
AnswerRe: newbie question..plz help Pin
Guffa15-Mar-06 8:29
Guffa15-Mar-06 8:29 

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.