Re: GDI memory limit

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



It's the limitation of 32-bit Windows.

In 32-bit Windows, 4gb address space is divided into 2gb kernel mode address
space and 2gb user mode address space. Your program/Dlls get loaded into
user mode address space. With all the user mode DLLs and memory allocations
(stacks, heaps), useable user mode address space is only around 1.4 Gb for
normal application. If your application has lots of modules, it could be
smaller. This explains why you're hitting limit around 1 gb.

The best way to solve your problem is moving to 64-bit Windows, there you
will have a huge address space. Another way is change system settings to let
user mode address space be 3gb instead of the normal 2gb.

Other than that:

1) Check what's in your user mode address space by walking memory blocks in
VM.
2) Rebase DLLs if possible to make space.
3) Optimize your design/implementation.

--
Feng Yuan [MSFT] http://blogs.msdn.com/fyuan

<cuore_rosso_roma@xxxxxxxx> wrote in message
news:1152736702.457342.164520@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

That function fails for images of ~1 GB on my system (windows 2000
server, 4 GB RAM, P4 2GHz).


.



Relevant Pages

  • Re: Questions about inside the API CreateProcess!
    ... to hide it in kernel mode. ... About all yo can do is have a file system filter that catches the memory ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... of the call from user mode to kernel mode,... ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Tutorials On line
    ... allows you to write a file system in user mode, ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... On a side matter - I read a white paper that> discusses the possibilty of passing IO requests from a kernel proxy to a> usermode process that can process the data and pass it back to kernel, and> then back to the OS - I believe it was refered to as a User Mode proxy. ...
    (microsoft.public.development.device.drivers)
  • Re: difference between driver and services?
    ... user mode and drivers run in kernel-mode. ... windows vista est par example windows xp... ... [Windows Services] ...
    (microsoft.public.win32.programmer.kernel)
  • Re: problem with KeSetEvent
    ... Don Burn (MVP, Windows DDK) ... But it doesn't work when I set event from kernel KeSetEvent ... but when the filter calling KeSetEvent() starts receiving data much ... When I use from user mode WaitForSingleObjectand ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Why is Linux still a piece of shit? Why?
    ... It's because the graphics run in user mode, and not in kernel mode, like ... > Redhat 6.0 ... It reminded me of Windows 3.1 yuch! ... Should I pay $80 for this piece of shit? ...
    (alt.os.linux.suse)