[great-users] Small bug - SetStrValue is not checked...

Aditya Agrawal Aditya at isis.vanderbilt.edu
Tue Apr 6 18:58:50 CDT 2004


> I'm using the officially unreleased version of GReAT. I was not
careful
> enough and tried the following thing in an attribute mapping:
> 
> <something>.SetStrVale("something", 0);
> 
> Obviously it should be:
> 
> <something>.SetStrVale("something", "0");
> 
> No errors are reported during configuration and the execution of this
> rule crashes GME.

[Adi] 
The AttributeMapping and Guard code is compiled into a dll by GRE and
called at run time. Since the code you wrote is valid C++ code it is
successfully compiled and linked. In your case it's a semantic error
that even the C++ compiler cannot catch.

Thanks,
Adi


More information about the great-users mailing list