--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "android-ndk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-ndk/-/SGx3OUJUTDRIR1lK.
my program works as follows:
when it starts in java, it loads a .so file for JNI,than it create a
child process using fork() and execl(),
my child process,as part of my app, built by ndk, is a executable program.
but even if it is buggy, i don't think it will cause my app to quit.
because it is
a child process, it should not affect it's parent, am i right?
Side question (and a possible alternative): is it ok to start a long running
process with Runtime.exec() ?
I mean, something which would act as an engine, with which the app would
interact using sockets and such. If I ever do that, I would start the process
from a service I guess.
--
Olivier
Side question (and a possible alternative): is it ok to start a long runningprocess with Runtime.exec() ?
you mean, i should not use fork() and execl() in my program? but the NDK have
this headers and i use them in my native code, and they works.
these
will not supported
in the futrue? if so, how can my app(using java and native c/c++) to
create another process
and communicate with? what is the best way to do this?
Is this still true if the process is started by a service, and gets cleanly
terminated by the service when it's destroyed? I mean, if the process is
completely managed by a service.
--
Olivier
--
Olivier
E/dalvikvm-gc(15315): Could not create 3207168-byte ashmem mark stack:
Too many open files
E/dalvikvm-heap(15315): dvmHeapBeginMarkStep failed; aborting
E/dalvikvm(15315): VM aborting
I/ActivityManager( 991): Process xxx (pid 15315) has died.
I/WindowManager( 991): WIN DEATH: Window{45123898
com.mansiontech.mxnavi/com.mansiontech.mxnavi.MXNavi paused=false}
D/Zygote ( 909): Process 15315 terminated by signal (11)
I think it is out of memory, and there are bugs in my program that
open files and do not close them.