Hi, Michael. It's not immediately obvious from reading the
code where
the problem is. Please send a minimal ZOOM-C application
that
demonstrates the problem, and I'll see what I can do.
Michael Freidgeim writes:
> Hello,
>
> I am using function ZOOM_query_cql2rpn(ZOOM_query s,
const char *str, ZOOM_connection conn); to pass CQL query
> When I am passing relatively short query it works
fine.
> However when I passed long query:
> (proprty) and (bath.notes = proprty) and (TITLE =
proprty) and (AUTHOR = proprty) and (SUBJECT = proprty) and
(EDITOR = proprty) and (PUBLISHER = proprty)
>
> It failed, and when I am retrieving error from
connection(using
ZOOM_API(int)ZOOM_connection_error(ZOOM_connection c, const
char **cp,const char **addinfo) )
> It returned cp: CQL transformation error (10012)
> addinfo: Too many characters in query
(addinfo=è...¨¨¨)
>
> and after this
> An unhandled exception of type
'System.AccessViolationException'.Additional information:
Attempted to read or write protected memory. This is often
an indication that other memory is corrupt.
>
> It seems that (addinfo=è...¨¨¨) is not set up
properly in ZOOM_query_cql2rpn, which causes the memory
corruption.
> Note that yaz-client returns correct error message
> Can't convert CQL to PQF: Too many characters in query
(addinfo=512)
>
> How can I avoid Access Violation and return meaningful
error message ?
>
> Regards,
> Michael Freidgeim
>
>
>
> _______________________________________________
> Yazlist mailing list
> Yazlist lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|