Which operating system are we talking about?
I am using linux 2.6(embedded, arm) and qt version is 4.6.
Hi,
i have the exactly same problem.
Qt 4.6 is running on an embedded system (Linux 2.6.38, ARM926EJ-S).
The error is: Resource error (fork failure): Cannot allocate memory
Since fork makes (somewhat) a copy of the calling process, and my calling process is a bit "bigger", it fails athough there really should be enough free memory for the small shell script that should be called.
Is there an alternative to QProcess that doesn't use fork (that way?)?
Before i implemented QProcess i made a simple system call, but that is really dirty and i want to avoid that.
Best Regards
You can implement an external daemon that you can contact using some IPC mechanism that will fork itself into the process you want.
versat (29th January 2014)
Bookmarks