Otis wrote:
If you're using selfservicing, code like:
No, we are using adapters.
OK, I see that I was a bit imprecise.
We use v1.0.2004.1 BETA LLBLGen, SQL Server, a lot of collections.
Otis wrote:
.NET winforms applications can eat a lot of memory. A simple hello world winforms app can take up to 19MB of mem, just 1 form and a single string.
We did a little test with memory usage and we got something like this:
Just form: 13MB
Form with adapter (created) and opened connection: 21MB
Form with all our custom components (abot 120), a lot of declarations (a few entities in there): 26MB
Form with 17 collections, 5 filled collections with fewer than 20 entities: 55MB
Other collections are empty (just new keyword).
And that is the smaller form with fewer filled collections. The other one uses about 80 MB (but has 12 filled collections with 5-30 entities).
Everything is a debug build.
Another thing is that we have a large database with 120+ tables. The DAL dll uses about 3 MB disk space (if that is of any relevance).
Otis wrote:
Solution: remove any eventhandlers created when the form is unloaded. Please check if you do that.
Hmm.. i don't know if have that situation. I'll check. Since the application is tab based (a single form with a lot of tabs) I don't think that there is a situation like that!