mario… thanks for the answer, and sorry for the delay in my reply but it works fine, the thing is that I was facing other problem with PxLoadImage() that fried my brain.
After a week of debuging a SIGSEGV in some point of the code (after PxLoadImage) we realize that it seems that Photon can’t manage well PNG files with transparencies. It was not the first logical cause of the segment violation because we have a lot of new code and we though that the problem was there… But it seems is not the case. At last, we tried with no transparencies or other format images (bmp, jpg) and we build some test application that loads and frees images (with PxLoadImage) every 50 msec and we let it running for a whole day. No problems. That’s the story.