[antlr-interest] Re: C++: Exception on loading literals.

TheSamiM mikhail at augustmail.com
Thu May 15 12:46:27 PDT 2003


Update:
It's not a STL or map bug. I can reproduce the same constructs in a 
different program and it works like a champ. (IE: I put the same map 
in a different non-ANTLR program, and I can populate it and search it 
all day long.)

I'm tending to think it's an initialization problem.

The only reason I'm thinking it's not a problem with my grammar per 
se is I'm seeing the same issue with the example grammars.

Am I the only one who's run into this issue?



--- In antlr-interest at yahoogroups.com, "TheSamiM" <mikhail at a...> 
wrote:
> Help!
> 
> Using ANTLR 2.7.2.
> Using Visual C++ 6.0 (no service packs as far as I can tell)
> 
> I built antlrd.dll; truck loads of warnings but no errors.
> 
> I generated the classes from my grammar. (Tried this with some of 
the 
> example grammers and am having the same issue...)
> 
> I run. I crash. The exception is a "memory at xxxxxx cannot be 
read".
> 
> This is happening on initLiterals(), on the first literal.
> When CharScannerLiteralsLess::operator() is called, the second 
> parameter is an invalid pointer. (Which kinda makes sense because 
> there shouldn't be any other elements in the map, but why is 
> CharScanner (or is it the map?) bothering with a comparison for an 
> empty map?
> 
> Am I missing something?
> Am I missing a service pack?
> Should the map be initialized somehow? (How?)
> Where does one get the service packs for VC anymore, all I can find 
> on MSDN is .net foo wich won't help much...
> 
> Any pointers (no pun intended) would be greatly appreciated.


 

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




More information about the antlr-interest mailing list