Adrian, >I probably should have also mentioned that in NSBasic it worked for me... >?!?!? :(
So you BmpCompress() to successfully uncompress a compressed bitmap? >---- BitmapType* pBmp2; > >My pBmpr2 was declared as a Variant (no special structure). In C it would be >a void*. (it could be related to sysErrParamErr error). It's not related to the error. But to humor us, I did change the definition and I still get the same error. >---- size = 64000 'just to fit in a resource. Not your need. The bitmaps I'm using as trials are under 3K uncompressed. Even when I overallocate to 64000 bytes I get the same error. >And my BmpCompress, in NSBasic, used a hard coded BitmapCompressionType. Which of course is only due to the lack of constants available. >Err = SysTrapFunc(991,2,MemPtrNew,compressType) You left out the line where you copied the storage heap bitmap to the dynamic heap bitmap. For the lines you quoted, MemPtrNew (a Variant) contains a pointer to 64000 bytes but does not contain a valid compressed bitmap -- so you're obviously leaving out a line corresponding to my MemMove(). >But, just taking another look at my own documented code <g>, I see that >Version 2 encoding is supported in Palm OS 3.5 and later, but only if >High-Density Display Feature Set is present. No, you're reading that wrong. Version two encoding is supported from 3.5 on, but the *typedef* for BitmapTypeV2 got added later. You can work with v2 bitmaps just fine starting with OS 3.5, but the typedef for BitmapTypeV2 and BitmapTypeV3 didn't appear on the high-density display feature set was added. >So, it seems that we should >have both features in our devices (early Handspring, probably, or a PalmOS >4.0 compatible device). Would be this your problem?. No. I've tried the code on both OS5 and OS4 devices, and get identical results. I always get sysErrParamErr. It's not so much that I really need this to work -- I can just document "don't do that" -- as it is bewilderment on what I am missing. Per the docs, it seems like it should be easy to uncompress a bitmap in the dynamic heap. And I don't seem to be the only one having trouble uncompressing them. Is this a known problem in some OS versions? Doug -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
