List Info

Thread: Access Violation when returning CQL transformation error Too many characters in query




Access Violation when returning CQL transformation error Too many characters in query
user name
2006-12-28 06:55:04
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
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
Access Violation when returning CQL transformation error Too many characters in query
user name
2007-01-02 13:48:37
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
 > Yazlistlists.indexdata.dk
 > http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )