Alaska Software Inc. - Virtual Memory Limit 32-bit
Username: Password:
AuthorTopic: Virtual Memory Limit 32-bit
Krystian TrochaVirtual Memory Limit 32-bit
on Thu, 08 Mar 2018 10:36:08 +0100
Hello,
I'm facing a problem in company project that I'm working on. We were receiving 
"System.OutOfMemory"exception after performing some operations on COM object 
(used to edit .rtf documents).  
	In the beginning, I was just monitoring simple task manager to check how 
much operating memory process was holding (~100MB). After some large number of 
opening/editing documents, memory was slowly increasing up to 200-300 MB then 
the app crashed with OutOfMemory Exception. So that was weird, cause there was 
still more than the plenty, physical memory available.
I have tried to increase stack size for the app or working set for the process 
but it didn't help.
	After some digging, I noticed that process Virtual Memory = 1 830 828 K.  
Application is 32bit so limit is at 2GB, indeed after reaching that threshold 
application crashes.
	I don't know how to control this and why this app reserves so much 
Virtual Memory on start (it's 1,8GB after fresh start).  Is there any way that I 
can reduce that?



virtual.PNG
Jim LeeRe: Virtual Memory Limit 32-bit
on Thu, 08 Mar 2018 18:52:44 +0100
> I don't know how to control this and why this app reserves so much
> Virtual Memory on start (it's 1,8GB after fresh start).  Is there any way
> that I can reduce that?

did you talk about Xbase++ ?
Krystian TrochaRe: Virtual Memory Limit 32-bit
on Fri, 09 Mar 2018 07:09:22 +0100
>> I don't know how to control this and why this app reserves so much
>> Virtual Memory on start (it's 1,8GB after fresh start).  Is there any way
>> that I can reduce that?
>
>did you talk about Xbase+ +?

Yes, naturally.
Jim LeeRe: Virtual Memory Limit 32-bit
on Fri, 09 Mar 2018 20:40:45 +0100
>>did you talk about Xbase+ +?
>
> Yes, naturally.

im asking while your Snapshop seems to show a DotNet Tool which Xbase++ do 
not have.

Question :
about what COM App we are talking ?
did you receive Event from COM ?
which Xbase++ Version ?
OS() ?

i use a lot of ActiveX but i never had Memory Problem even on a 32bit OS() 
with 2GB RAM

p.s. have you switch SwapDisk off ?