"Cannot allocate memory" when open /dev/camera in Qt

unknown
hi all

I receive "Cannot allocate memory" error when try to open CMOS camera
"/dev/camera" in Qt on mini2440 equipped with
Qtopia2.2/QtEmbedded4.6.3/Linix2.6.32.2

how can it be solved? 
"chmod -R 777 /dev" , some times, randomly solve the problem (with 6 times
try to opening!)

unknown
please be informed that open("/dev/pwm",0); work fine.

unknown
and Qtopia System Info shows that still there is free 44MB RAM + 13MB flash
!

unknown
and this {open("/dev/camera",0);} work fine, in a console application,
compiled with Makefile:
arm-linux-g++ camtest.cpp -Wall -O2 -o camtest
arm-linux-strip -s camtest

brox
please use linux forum for linux questions
this forum is for os-less app