I have an application (Winforms application) that allocates quite a bit of
memory (like 45mb). This application is destined to run in a Terminal Server
environment by multiple users at the same time.

I would like to reduce the footprint as much as possible.

I have read a little about AppDomain, but I am have no idea how to implement
it for my application.

Any AppDomain for Dummies help would be greatly appreciated.

VS2005 VB.NET

Re: AppDomain by Tom

Tom
Wed May 07 11:51:27 CDT 2008

On 2008-05-07, Kevin L <no_spam@not_real_email.com> wrote:
> I have an application (Winforms application) that allocates quite a bit of
> memory (like 45mb). This application is destined to run in a Terminal Server
> environment by multiple users at the same time.
>
> I would like to reduce the footprint as much as possible.
>
> I have read a little about AppDomain, but I am have no idea how to implement
> it for my application.
>
> Any AppDomain for Dummies help would be greatly appreciated.
>
> VS2005 VB.NET
>
>

What exactly were you thinking of doing? There are issues surrounding
the use of appdomains, that really depend on what kind of architecture
your planning?

--
Tom Shelton

Re: AppDomain by Kevin

Kevin
Wed May 07 12:44:00 CDT 2008

Hi Tom,

Thanks for the quick reply.

From what I could tell, it seems (again, I am completely guessing here),
that AppDomains would potentially reduce the memory footprint of my
application.

The application itself is a TimeClock application (Punch In/Out etc). It
connects to a SQL db. Nothing super complicated, but it has many screens,
grids etc with information.

Am I wrong to assume that this will potentially free up a considerable
amount of memory on my Terminal Server? Currently, this is installed on a
Test Terminal server, and each TimeClock process is taking between 35 to 45
mb of memory.




"Tom Shelton" <tom_shelton@YOUKNOWTHEDRILLcomcast.net> wrote in message
news:%23NGrYKGsIHA.3780@TK2MSFTNGP03.phx.gbl...
> On 2008-05-07, Kevin L <no_spam@not_real_email.com> wrote:
>> I have an application (Winforms application) that allocates quite a bit
>> of
>> memory (like 45mb). This application is destined to run in a Terminal
>> Server
>> environment by multiple users at the same time.
>>
>> I would like to reduce the footprint as much as possible.
>>
>> I have read a little about AppDomain, but I am have no idea how to
>> implement
>> it for my application.
>>
>> Any AppDomain for Dummies help would be greatly appreciated.
>>
>> VS2005 VB.NET
>>
>>
>
> What exactly were you thinking of doing? There are issues surrounding
> the use of appdomains, that really depend on what kind of architecture
> your planning?
>
> --
> Tom Shelton



Re: AppDomain by Cor

Cor
Wed May 07 22:46:18 CDT 2008

Kevin,

In my idea has this very few (or probably nothing) to do with the program
language Visual Basic, maybe you can try it in a Server newsgroup.

Cor


"Kevin L" <no_spam@not_real_email.com> schreef in bericht
news:O2hMxnGsIHA.5580@TK2MSFTNGP04.phx.gbl...
> Hi Tom,
>
> Thanks for the quick reply.
>
> From what I could tell, it seems (again, I am completely guessing here),
> that AppDomains would potentially reduce the memory footprint of my
> application.
>
> The application itself is a TimeClock application (Punch In/Out etc). It
> connects to a SQL db. Nothing super complicated, but it has many screens,
> grids etc with information.
>
> Am I wrong to assume that this will potentially free up a considerable
> amount of memory on my Terminal Server? Currently, this is installed on a
> Test Terminal server, and each TimeClock process is taking between 35 to
> 45 mb of memory.
>
>
>
>
> "Tom Shelton" <tom_shelton@YOUKNOWTHEDRILLcomcast.net> wrote in message
> news:%23NGrYKGsIHA.3780@TK2MSFTNGP03.phx.gbl...
>> On 2008-05-07, Kevin L <no_spam@not_real_email.com> wrote:
>>> I have an application (Winforms application) that allocates quite a bit
>>> of
>>> memory (like 45mb). This application is destined to run in a Terminal
>>> Server
>>> environment by multiple users at the same time.
>>>
>>> I would like to reduce the footprint as much as possible.
>>>
>>> I have read a little about AppDomain, but I am have no idea how to
>>> implement
>>> it for my application.
>>>
>>> Any AppDomain for Dummies help would be greatly appreciated.
>>>
>>> VS2005 VB.NET
>>>
>>>
>>
>> What exactly were you thinking of doing? There are issues surrounding
>> the use of appdomains, that really depend on what kind of architecture
>> your planning?
>>
>> --
>> Tom Shelton
>
>


Re: AppDomain by Mach58

Mach58
Wed May 07 23:15:06 CDT 2008

On Wed, 7 May 2008 12:04:20 -0400, "Kevin L"
<no_spam@not_real_email.com> wrote:

>I have an application (Winforms application) that allocates quite a bit of
>memory (like 45mb). This application is destined to run in a Terminal Server
>environment by multiple users at the same time.
>
>I would like to reduce the footprint as much as possible.
>
>I have read a little about AppDomain, but I am have no idea how to implement
>it for my application.
>
>Any AppDomain for Dummies help would be greatly appreciated.
>
>VS2005 VB.NET
>

Take a look at ngen. It *might* help in this situation.

http://blogs.msdn.com/clrcodegeneration/archive/2007/09/15/to-ngen-or-not-to-ngen.aspx
http://msdn.microsoft.com/en-us/magazine/cc163610.aspx

Mach