My camera application crash on Treo650 is fixed but i think that should not 
have occured at all.
In the application :
1. I successfully captured the image(320*240, color depth-16, image format - 
jpeg) using API "PalmPhotoCaptureImageV2()". I could see the image in 
memorycard folder of Simulator.
2. Now to view it, I first called "WinScreenMode" to set color depth to 16 and 
then called "PalmPhotoDisplayImage()" with display rectange = {{0, 20}, {320, 
240}}
Using this my image was displayed on the screen but after certain operations my 
application crashed due to some memory corruptions.

This problem was fixed just be reducing the display size of the image, such 
that width*height*3 comes out to be less than 64K.

My questions are:
1.why this crash did not occur at the time of capture
2.instead of crash, the API should have given error msg. Why the side effect?? 
Or did i miss some setting in application before calling these APIs

Thanks Miro for your reply.
Regards
Pooja




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to