[linux-audio-dev] question about a c++ error

Jens M Andreasen jens.andreasen at chello.se
Thu Oct 12 04:26:17 UTC 2006


On Wed, 2006-10-11 at 18:05 -0400, Dave Phillips wrote:

>   terminate called after throwing 
>     an instance of 'std::logic_error'
>   what():basic_string::_S_construct
>              NULL not valid
> 
> It almost looks poetic. :)
> 

Shakespeare! :)

> Alas, Google wasn't much help, and the author of the macro has no idea 
> why this error results (his code contains no C++). Can any C++ guru here 
> shed any light on the how/what/why of the error ? Maybe even suggest a 
> fix ?

Not a guru, but have thrown a few errors around.

It looks like it is the interpreter in OO that ends up in a confused
state, apparently trying to create a string out of nothing, perhaps
after the end of input. The reason could be:

* A programming error (thinko) in the macro
* A bug in the OO macro interpreter

Either way, it might be a good idea to ask on the OO dev/user lists as
well.
-- 




More information about the Linux-audio-dev mailing list