Rick Brewster Posted November 13, 2005 Share Posted November 13, 2005 Are you by any chance running low on disk space? Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 13, 2005 Author Share Posted November 13, 2005 Does this happen only with the actions you described above, or does it happen with pretty much any action you try to perform? Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 14, 2005 Author Share Posted November 14, 2005 RejZoR, can you give an exact step by step list of instructions that can reproduce this crashing? Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 15, 2005 Author Share Posted November 15, 2005 Yeah, I can easily reproduce this. So this is a P1 bug that definitely blocks our release and will force us to put out a Release Candidate 2 in a day or two. Thanks though! It's important to find bugs like this. I'm currently looking in to it. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 15, 2005 Author Share Posted November 15, 2005 Pffft, way to go me. It's a simple case of > vs. >= (greater than, vs. greater-than-or-equal-to). One character in the code fixes this. Turns out our "large allocation threshold" is 65,536 bytes. The PNG you are pasting in those steps is 128 x 128, which is exactly 65,536 bytes (128 x 128 x 4 = 65536). In our code we state, for our constant integer named largeBlockThreshold, "blocks this size or larger are allocated with AllocateLarge instead of Allocate". But then when we allocate we use AllocateLarge for blocks larger than but not equal to this value. Then when we free the memory, we do the comparison correctly. So we end up allocating with AllocateLarge and trying to free with Free instead of FreeLarge. Then Windows gets cranky and throws that "487" error code at us. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.