From: Marco F. <mar...@ya...> - 2003-09-24 10:33:52
|
Hello, I'm beginning studying agtk, and I wish to use Tcl wrapper. I need your help for this problem I have. Every function works fine except AG::Load. When I run this very simple script: #!/usr/bin/tclsh package require ag set ag2 [AG::Load AG "demo1.xml"] puts [AG::toXML $ag2] I obtain only a segmentation fault. "demo1.xml" is the demo file I've found in agapps-1.1.2/annotation/ dir, I've only changed DOCTYPE to "ag.dtd" which is in the same dir of demo1.xml and of my script. Trying to open other xml files, I obtain messages like these: agf:An exception occurred! Type:UTFDataFormatException, Message:invalid byte 2 ( ) of a 3-byte sequence. LoadErroragf:An exception occurred! Type:UTFDataFormatException, Message:invalid byte 2 ( ) of a 3-byte sequence. while executing "AG::Load AG "read.xml"" invoked from within "set ag2 [AG::Load AG "read.xml"]" (file "./provaagtk.tcl" line 5) Maybe I made some mistakes compiling your library. Here's the config summary: Configuration summary. * agdb: no * tcl wrapper: yes headers: -I/usr/include big-ball: no install dir: /usr/local/lib/ag_tcl * python wrapper: yes headers: -I/usr/include/python2.2 big-ball: no install dir: /usr/lib/site-python * java wrapper: yes big-ball: no install dir: ${prefix}/lib/ag/java * Xerces-C: yes * zlib: yes I'm using agtk on a RedHat9.0 laptop. tcl is 8.4.4 xercesc is 2.3.0 Thanks in advance Marco |