Subj : works only outside class To : borland.public.cpp.borlandcpp From : Gerhard Wolfstieg Date : Tue Dec 23 2003 09:46 pm Which kind of reasons are conceivable in the following case? This code is running fine: >> int main( int, char *[] ) { .... term_t ref = PL_new_term_ref(); if( !PL_chars_to_term( "x( A, 2 )", ref ) ) throw RC_Syntaxfehler; .... } << The next does not work (it seems to loop in a second thread): >> struct gwTerm { term_t ref; gwTerm( char const * ); }; gwTerm::gwTerm( char const *text ) { ref = PL_new_term_ref(); if( !PL_chars_to_term( text, ref ) ) throw RC_Syntaxfehler; } int main( int, char *[] ) { .... gwTerm *a = new gwTerm( "x( A, 2 )" ); .... delete a; // only on absence of exceptions .... } << Compilerflage etc. are the same for both fragments (in BC 5). .... any ideas -- that I don't have? thank you, gw .