[antlr-interest] Re: crash in 2.7.2

DrXenos spamjunk at stny.rr.com
Sat Jun 14 07:45:50 PDT 2003


Please ignore.  My problem was indeed a different cause, and is solved.

Reagrds,

Rich Herrick


--- In antlr-interest at yahoogroups.com, "DrXenos" <spamjunk at s...> wrote:
> This is the same problem I have been having for months, and can't seem
> to resolve.
> 
> --- In antlr-interest at yahoogroups.com, "monaabs" <monaabs at y...> wrote:
> > Hi , 
> > My application is crashing on this statement 
> >    astFactory->addASTChild(currentAST, n_AST);
> > The SQL_Parser.cpp looks like this 
> > 
> > void SQL_Parser::r_QNamePart() {
> > 	returnAST = ANTLR_USE_NAMESPACE(antlr)nullAST;
> > 	ANTLR_USE_NAMESPACE(antlr)ASTPair currentAST;
> > 	ANTLR_USE_NAMESPACE(antlr)RefAST r_QNamePart_AST = 
> > ANTLR_USE_NAMESPACE(antlr)nullAST;
> > 	ANTLR_USE_NAMESPACE(antlr)RefToken  n = ANTLR_USE_NAMESPACE
> > (antlr)nullToken;
> > 	ANTLR_USE_NAMESPACE(antlr)RefAST n_AST = ANTLR_USE_NAMESPACE
> > (antlr)nullAST;
> > 	
> > 	n = LT(1);
> > 	if ( inputState->guessing == 0 ) {
> > 		n_AST = astFactory->create(n);
> > 		astFactory->addASTChild(currentAST, n_AST);
> > 	}
> > 
> > The astFactory seems to have a value of 0x0000ffff. why would this 
> > happen ? 
> > 
> > To compile the lib , i used ANTLR_EXPORTS in my project settings .. 
> > is this a reason for crash ?
> > 
> > Regards
> > Mona


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list