Solved my problems! Due to caching by the browser I couldn't put a finger on the real problem. It turned out that upvar in the methods was the responsible for the segfaults, which led me to Itcl. The server uses the debian packages for Itcl which is at version 3.1 whereas on my development machine I have an activetcl installation with Itcl 3.3. After asking nicely to the admin and getting the Itcl3.3 libs installed everything worked :-) One detail though: In method DisplayRequest I changed set total $a(count) by set total $a(count\(*\))
Lesson learned: Debian users -> Itcl3.1 = BAD Itcl3.3 = GOOD Cristian. On 4/19/07, Cristian <[EMAIL PROTECTED]> wrote:
Hi, I'm trying to use rivet with the DIO and DIODisplay packages but have constant segmentation faults. First I populated a test table with some rows using DIO. Everything worked fine... Then I wanted to check DIODisplay out. The first segfaults were due to load_response using the default response array. I have no clue why it doesn't like it but adding an array name (resp) and changing response by resp in the rest of the code at least showed a form on the web page. This time the segfaults were produced elsewhere, so I started tracking it down and came to the conclusion that it is the access of the results of the query that are responsible. I have a DIO object, make a request (exec) and get the result object back. I can get the fields, errorcode, errorinfo and numrows but next and forall both segfault. Same thing for the array, fetch, list methods from the dio object... the only method that worked till now is string but this only returns the first record. I hope somebody will be able to help me solve these problems, or at least tell me where I can look to solve these issues. Would somebody have a working deb package with the latest rivet?? My setup: Debian unstable using a Mysql database with rivet from svn tag 1_0 which compiled ok, but installation was not straightforward due to the declaration lib_libexecdir=/usr/lib /usr/share/rivet0.7.0 . As I'm already asking quiet a lot of things, Could somebody give a simple example how DIODisplay is to be used? a test database with one table a couple of columns and a .rvt page showing how to use it?? Thank in advance for any help! Cristian.
