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

Stephen Jackson spjackson42 at gmail.com
Wed May 5 22:53:56 CEST 2010


On 5 May 2010 21:15, Pedro Santos wrote:
> Am 05.05.2010 20:33, schrieb Malyushytsky, Alex:
>> std::bad_alloc exception is thrown in C++ when object can't be allocated?.
>> Application is terminated when you don't catch exceptions.
>> This is C++ standard behavior.
>>
>
> Yes this is clear to me, but what does the error "Could not allocate register
> file: 12" mean? I am not running out of RAM as I can see. This error occours by
> allocating +600 QScriptEngine-Objects.
>

You have told us nothing whatsoever about your platform.

errno 12 on some systems is ENOMEM /* out of memory */

Google "Could not allocate register file" has hits relating to out of
memory conditions.

Do you really need to allocate 600 QScriptEngine objects? As a test, I
have allocated over 8000 before I got bored with all the swapping.

-- 
HTH,

Stephen Jackson



More information about the Qt-interest-old mailing list