Jump to content

chumbyAus

Newbies
  • Posts

    4
  • Joined

  • Last visited

Everything posted by chumbyAus

  1. No, the 8k x 8k bitmap would require (8192 x 8192 x 4) x 3 = 805,306,368 bytes, or about 768 MB of memory, split over 3 contiguous allocations of 256 MB each. Sometimes it's hard to find holes that big in the virtual addressable range of a 32-bit process. You may have "2 GB free RAM" but that's not the way things actually are. Memory management, especially on 32-bit systems right now, is not as simple as, "I have X bytes free, so I should be able to use X bytes." This is one of the major things I'm addressing for Paint.NET 4.0 though. Hi again, Ummm, seems a strange way to do it. In the paint software I wrote, with undo buffers, there was no problem allocating this amount of memory. I'm not sure why you're looking for 256MB chunks. That's not the way to do it. In all of the memory management routines I use there's absolutely no problem so yes, it is as simple as getMem of 900MB, or whatever size you need. And this is on a 32-bit WindowsXP system. The first thing I'd look at is why you actually need (8192 x 8192 x 4). If the native bitmap you're loading is only 24-bit then the alpha channel is a waste. Secondly it's extremely inefficient to allocate 3 times the space you actually need. Way to much waste of memory and therefore you're limiting your end users as to what they can work with. I'm not trying to have a go here but there are hundreds of paint programs out there that have no problem with this type of thing, including stuff we write in house. Good luck with the project. It's definitely a worthwhile cause. I'm all for supporting people or teams pushing ahead with free software purely for the gratification of actually making something people will love to use.
  2. Hi Rick, Even so, a 8192 x 8192 bitmap which is 192 MB (201,326,646 bytes) in size and a standard 24-bit Windows BMP image should be able to open in a system with at least 2GB of RAM free. Keep up the good work, it looks like it has a lot of potential.
  3. Hi, Yep, not a problem. Windows XP 32-bit. 4GB RAM installed but as we all know Windows only sees 2.75GB of RAM. So, there was plenty of RAM. I loaded the same file into memory with my software 5 times and it wasn't a problem.
  4. Hi, First off, nice piece of software. I desperately want this to be successful for you. However, when opening a 8192 x 8192 24-bit Windows BMP file an "out of memory" error is generated. If you do the maths as per this forum: (W x H x 4) x (L + 2) You get (8192 x 8192 x 4) x (1+2) = 805,306,368 Now I have 4GB memory and at least 2GB free when running this software so there should not be a problem. Even the software I've written to process these standard BMP files can handle about 5 bitmaps without running into problems. So, there is definitely a bug in this software. No question about it.
×
×
  • Create New...