Re: [Pyobjc-dev] initWithBitmapDataPlanes?
Brought to you by:
ronaldoussoren
From: Francesco P. <fpi...@no...> - 2003-12-06 18:27:52
|
OK, After trying all possible combinations (in random order), I finally managed to make it work. It looks like I was not creating a NSAutoreleasePool and my code was just crashing, after trying to display an image. Now it works, I hope. BTW, PyObjC rocks! And it is quite fast! I am impressed. I will do some tests with real images (8K x 8K or bigger) to see how things work when handling quite some memory... Thanks!!! fra On Dec 6, 2003, at 10:40 AM, b.bum wrote: > I added a unit test that invokes the init...() method w/an array of > bytes as a grey scale image. It passes. > > However, I'm not rendering anything so it may not explode until the > actual rendering happens.... > > So, three things may be happening: > > - you are trashing memory or passing in fewer bytes that expected > > - it blows up when it is rendered, but the initialization is working > fine > > - python is freeing the data you passed to NSBIR before the NSBIR has > rendered the bytes > > In other words, I didn't actually find anything useful but hopefully > the above helps. What is the last line of python that is executed? > > b.bum > --- Francesco Pierfederici <fpi...@no...> NOAO/AURA Inc. http://www.noao.edu/staff/fpierfed/ 950 N. Cherry Ave. Phone: +1 520 318 8402 Tucson, AZ 85719 USA FAX: +1 520 318 8360 |