For the display of bitmaps, most apps take the approach of creating (sometimes multiple) low-res versions of the images, then swapping out so that only what you need at the moment is loaded in to memory. For instance, create a 50x50 version, a 100x100 version, and a 500x500 version. Only load the 500x500 when you are zoomed in enough to see the detail in it.<div>
<br></div><div>Then again, on 64-bit windows, with 64-bit python, you can theoretically address 8TB of memory per-process.</div><div><br></div><div>Steven<br><br><div class="gmail_quote">On Thu, Jan 29, 2009 at 2:13 AM, geoff <span dir="ltr">&lt;<a href="mailto:imageguy1206@gmail.com">imageguy1206@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am hoping someone could steer me in the right direction on how to<br>
calculate the amount of RAM available to a process.<br>
<br>
I found the post below from Tim Roberts - a belated thanks Tim for<br>
your patient responses ! and it seems we regularly hit this limit.<br>
<br>
We have an application that needs to display a large number of bitmaps<br>
(ie 100+) at one time. &nbsp;Currently we are just reading the file and<br>
storing as a wx.Image in RAM. &nbsp;I would seem we are hitting the 2.0G<br>
limited mentioned in the post below and I am wondering if there is<br>
some strategy we could use to go beyond this -- other than thumbnails<br>
and reading as necessary from the filesystem.<br>
<br>
At minimum though I would like to be able to &#39;prompt&#39; the user to<br>
close some applications (ie mail clients, spreadsheets, etc) to free<br>
up some more space before our process starts.<br>
--- or would that even make a difference ?<br>
<br>
Any on the above (or the post below), help, advice, guidance would be<br>
greatly appreciated.<br>
<br>
&lt;old post&gt;<br>
Original Date: July 18th, 2005, 02:38 PM<br>
No, a user-mode process in Windows is limited to 2GB of address space.<br>
Addresses 80000000 and larger are kernel space. You can change the<br>
threshhold to 3GB by using the /3gb boot.ini switch, but few do so.<br>
<br>
You can certainly have more than 2GB of physical RAM in your machine, but a<br>
single process cannot use more than 2GB at a time.<br>
<font color="#888888">--<br>
- Tim Roberts, <a href="mailto:timr@probo.com">timr@probo.com</a><br>
Providenza &amp; Boekelheide, Inc<br>
&lt;/old post&gt;<br>
_______________________________________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>
</font></blockquote></div><br></div>