Ask Your Question
0

Does FileStorage work on android?

asked 2013-05-02 22:38:34 -0600

aldoreyes gravatar image

I'm trying to save a file on android, using c++, the following code always crashes:

FileStorage fs2("samples2.yml", FileStorage::WRITE);
   if(fs2.isOpened()){
       fs2 << "frameCount" << 5;
   }
   fs2.release();

And the console prints what it seems to be a pretty generic error message:

05-02 22:34:11.001: A/libc(11697): Fatal signal 11 (SIGSEGV) at 0x6d617266 (code=2), thread 11730 (AsyncTask #1)
05-02 22:34:11.081: E/BufferQueue(11697): [unnamed-11697-1] dequeueBuffer: min undequeued buffer count (2) exceeded (dequeued=5 undequeudCount=1)

Is it possible to use this on android, or should I use the File class that comes with the ndk?

Thanks for your time.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-05-03 03:39:17 -0600

I guess this link says it all!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-02 22:38:34 -0600

Seen: 1,645 times

Last updated: May 03 '13