Click here to Skip to main content
15,881,172 members
Home / Discussions / C#
   

C#

 
GeneralRe: Has anybody ever seen this IO exception before? Pin
snorkie2-Mar-09 11:42
professionalsnorkie2-Mar-09 11:42 
GeneralRe: Has anybody ever seen this IO exception before? Pin
led mike2-Mar-09 11:56
led mike2-Mar-09 11:56 
GeneralRe: Has anybody ever seen this IO exception before? Pin
snorkie2-Mar-09 12:03
professionalsnorkie2-Mar-09 12:03 
AnswerRe: Has anybody ever seen this IO exception before? Pin
Yusuf2-Mar-09 12:15
Yusuf2-Mar-09 12:15 
AnswerRe: Has anybody ever seen this IO exception before? Pin
pbarrette3-Mar-09 15:30
pbarrette3-Mar-09 15:30 
QuestionHow to create an instance of a c++ class inside a dll in a c# project Pin
EcK3kO2-Mar-09 11:16
EcK3kO2-Mar-09 11:16 
AnswerRe: How to create an instance of a c++ class inside a dll in a c# project Pin
led mike2-Mar-09 11:32
led mike2-Mar-09 11:32 
QuestionEasy memory optimizations? Pin
bbranded2-Mar-09 10:54
bbranded2-Mar-09 10:54 
Hello,

I just finished one of my first programs, a program to show and hide windows by process. I'd like to go ahead and give it to my boss to put it in production, but the memory usage ranges from 12-15MB, and doesn't seem to make any sense.

A co-worker of mine has a similar piece of software (handles z-order of windows), which he programmed in delphi, and it only takes 4-5MB of RAM.


I attempted to call the garbage collector more frequently, but, as expected, this didn't have much of an effect (from what I've been reading, it does its job pretty efficiently on it's own).


Does anyone have any tips for memory optimization?


Thanks very much,

Matt
AnswerRe: Easy memory optimizations? Pin
Dave Kreskowiak2-Mar-09 11:04
mveDave Kreskowiak2-Mar-09 11:04 
GeneralRe: Easy memory optimizations? Pin
Yusuf2-Mar-09 12:20
Yusuf2-Mar-09 12:20 
GeneralRe: Easy memory optimizations? Pin
Dave Kreskowiak2-Mar-09 16:43
mveDave Kreskowiak2-Mar-09 16:43 
AnswerRe: Easy memory optimizations? Pin
Luc Pattyn2-Mar-09 11:26
sitebuilderLuc Pattyn2-Mar-09 11:26 
GeneralRe: Easy memory optimizations? Pin
bbranded2-Mar-09 12:26
bbranded2-Mar-09 12:26 
GeneralRe: Easy memory optimizations? Pin
Luc Pattyn2-Mar-09 12:29
sitebuilderLuc Pattyn2-Mar-09 12:29 
AnswerRe: Easy memory optimizations? Pin
DaveyM692-Mar-09 12:50
professionalDaveyM692-Mar-09 12:50 
GeneralRe: Easy memory optimizations? [modified] Pin
bbranded2-Mar-09 13:01
bbranded2-Mar-09 13:01 
QuestionRegex Pin
Dromar2-Mar-09 10:54
Dromar2-Mar-09 10:54 
AnswerRe: Regex Pin
Maxim Langman2-Mar-09 11:11
Maxim Langman2-Mar-09 11:11 
AnswerRe: Regex Pin
snorkie2-Mar-09 11:23
professionalsnorkie2-Mar-09 11:23 
GeneralRe: Regex Pin
Dromar2-Mar-09 12:12
Dromar2-Mar-09 12:12 
GeneralRe: Regex Pin
snorkie2-Mar-09 13:23
professionalsnorkie2-Mar-09 13:23 
GeneralRe: Regex Pin
Dromar3-Mar-09 5:37
Dromar3-Mar-09 5:37 
QuestionGetting TableName in Tables of DataSet Pin
Maxim Langman2-Mar-09 10:25
Maxim Langman2-Mar-09 10:25 
AnswerRe: Getting TableName in Tables of DataSet Pin
PIEBALDconsult2-Mar-09 12:52
mvePIEBALDconsult2-Mar-09 12:52 
QuestionRe: Getting TableName in Tables of DataSet [modified] Pin
Maxim Langman2-Mar-09 19:35
Maxim Langman2-Mar-09 19:35 

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.