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

unknown 2011-01-07 09:24:15 Link
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 2011-01-07 11:41:14 Link
please be informed that open("/dev/pwm",0); work fine.

unknown 2011-01-07 12:26:14 Link
and Qtopia System Info shows that still there is free 44MB RAM + 13MB flash
!

unknown 2011-01-07 15:44:16 Link
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 2011-01-07 20:14:10 Link
please use linux forum for linux questions
this forum is for os-less app

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number 9736