[Qt-interest] QScriptEngine: "Could not allocate register file: 12"

Pedro Santos nonspam2048 at yahoo.de
Thu May 6 20:16:07 CEST 2010


Am 06.05.2010 10:33, schrieb Thiago Macieira:

> #else
>              fprintf(stderr, "Could not allocate register file: %d\n", errno);
> #endif
>              CRASH();
>          }
>
> And as someone suspected, 12 is the errno and on Linux:
>
> #define ENOMEM          12      /* Out of memory */

Is there a way to avoid the crash of the application? I've tryed to surround 
the allocation of QScriptEngine's with a try/catch block, but it won't work. I 
have no experience catching exections in C++, so I don't know if its possible 
in this case and when yes, what I do wrong.





More information about the Qt-interest-old mailing list