[SDL] Android
Sam Lantinga
slouken at libsdl.org
Fri Feb 10 22:36:42 PST 2012
The Android file code is in here:
src/core/android/SDL_android.cpp
>From inspection, it looks to me like it's doing the right thing. Does the
Java VM garbage collection need to kick in to actually close the file
references?
On Thu, Feb 9, 2012 at 9:52 AM, Alexandr <balou at list.ru> wrote:
> **
> Hi,
>
> This code
>
>
>
> Code:
>
> char *fn = "recovery.rc";
> SDL_Log ("Try open file: %s", fn);
> for (int i=0; i<3000; ++i) {
> SDL_RWops* rwo = SDL_RWFromFile (fn, "r");
> if (rwo) {
> SDL_Log ("%d Ok", i);
> SDL_RWclose (rwo);
> } else {
> SDL_Log ("ERROR: %s", SDL_GetError());
> }
> }
> return 0;
>
>
>
> works like this:
>
>
>
> Code:
>
> W/SDL/APP (22744): Try open file: recovery.rc
> W/SDL/APP (22744): 0 Ok
> W/SDL/APP (22744): 1 Ok
> W/SDL/APP (22744): 2 Ok
> .
> .
> .
>
> W/SDL/APP (22744): 1005 Ok
> W/SDL/APP (22744): 1006 Ok
> W/SDL/APP (22744): ERROR: Failed to allocate enough JVM local references
> W/SDL/APP (22744): ERROR: Failed to allocate enough JVM local references
> W/SDL/APP (22744): ERROR: Failed to allocate enough JVM local references
> .
> .
> .
>
>
>
> The number of successful attempts to vary, but always limited. Why?
> I think this is a SDL error.
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120211/599a2510/attachment.htm>
More information about the SDL
mailing list