G
Guest
I'm currently trying to decide the best way to design my application, any
suggestions or comments welcomed.
In C++ to make my apps more efficient (consume less memory while running) I
would break parts of my apps into dll's that I would then load dynamically as
needed. I like this approach for it keeps the memory footprint small. To
use the same approach in C# I've had to load my dll's in separate app domains
that I can later unload to release memory. The problem I'm finding is that
when I load my dll's using the app domain approach, my app seems to use up a
lot of memory when running. This must be due to the overhead of creating the
new app domain.
My question is, would it be better in C# to code all your modules into one
executable? Or create app domains to load separately dll compiled modules?
suggestions or comments welcomed.
In C++ to make my apps more efficient (consume less memory while running) I
would break parts of my apps into dll's that I would then load dynamically as
needed. I like this approach for it keeps the memory footprint small. To
use the same approach in C# I've had to load my dll's in separate app domains
that I can later unload to release memory. The problem I'm finding is that
when I load my dll's using the app domain approach, my app seems to use up a
lot of memory when running. This must be due to the overhead of creating the
new app domain.
My question is, would it be better in C# to code all your modules into one
executable? Or create app domains to load separately dll compiled modules?