Re: Newbie: CComBSTR limitation?
- From: Vivek <vivek@xxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Sep 2006 15:40:12 +1000
Hi Alexander,
Thanks for prompt response. Moving to x64 is currently not an option and I have the /3GB Windows O/S switch enabled on my XP machine that has 4GB of physical memory.
However, the interesting aspect about this particular incident is that I got the error message when the application utilized only ~690MB of memory and there was plenty left for allocation...
So I take it from your response that there is no limit on how large a CComBSTR/BSTR can be?
I still don't get how I got the following error message from that method in VC++ 2005 debugger:
"hr = 0x00000003 The system cannot find the path specified."
Regards,
Vivek
Alexander Nickolov wrote:
Actually, the physical memory is not a limit - the virtual address.
space is the limit, or rather how it's fragmented. So even though
in theory you could allocate up to 2GB memory, in practice
the data shares the address space with the code, and there
are several heaps competing for the available virtual addresses.
If you need larger data chunks than what you get, I suggest you
consider moving to Win64.
- Follow-Ups:
- Re: Newbie: CComBSTR limitation?
- From: Brian Muth
- Re: Newbie: CComBSTR limitation?
- References:
- Newbie: CComBSTR limitation?
- From: Vivek
- Re: Newbie: CComBSTR limitation?
- From: Alexander Nickolov
- Newbie: CComBSTR limitation?
- Prev by Date: Re: Newbie: CComBSTR limitation?
- Next by Date: Re: Changing of appearance of gripper in custom draw toolbar
- Previous by thread: Re: Newbie: CComBSTR limitation?
- Next by thread: Re: Newbie: CComBSTR limitation?
- Index(es):
Relevant Pages
|