Thanks, If I change my proc definition to
proc ad_referer_filter {why} { it's working. So perhaps changing all my filter procs definition can be a fix. Should I do that to use the TTrace package ? Or wait for perhaps a workaround provided by AS or TTrace ? BTW, can the TTrace package be used in production environment ? Thanks. Jean-Fabrice RABAUTE Core Services - Enjoy the future today http://www.core-services.fr > -----Message d'origine----- > De : AOLserver Discussion [mailto:[EMAIL PROTECTED] la part > de Zoran Vasiljevic > Envoyé : lundi 15 décembre 2003 11:23 > À : [EMAIL PROTECTED] > Objet : Re: [AOLSERVER] TTrace & ns_register_filter > > > On Monday 15 December 2003 10:07, you wrote: > > Hi all, > > > > I am trying to install the TTrace module from Zoran Vasiljevic. > > > > I have a proc registered as filter like that : > > > > ns_register_filter trace GET * ad_referer_filter > > > > and the proc is defined like that (this is unmodified ACS 3.x > code ;-)) : > > > > proc ad_referer_filter {conn args why} { > > .... > > } > > > > This filter is just working fine on 3.x and 4.0, but when I enable the > > TTrace package I get those errors in the error.log : > > > > -------------------------------------------------------- > > Error: wrong # args: should be "ad_referer_filter conn args why" > > wrong # args: should be "ad_referer_filter conn args why" > > while executing > > "ad_referer_filter trace" > > -------------------------------------------------------- > > > > Any ideas to correct this problem will be welcome as the TTrace package > > looks pretty cool ! > > I know about this. I was trapped by it as well... > Shortly, AS has some issues in this respect, which has nothing > to do with ttrace package itself but with the argument passing > out of the C-code within AS (historical reasons, I believe). > I wanted to go and look into this but still haven't done that. > Maybe this is the right time to do so... > BTW, all our Tcl callbacks are like this: > > proc some_callback {args} {...} > > since I never figured out the *complex* argument passing rules > imposed by the AS in this special case. > > Cheers, > Zoran > > > -- > AOLserver - http://www.aolserver.com/ > > To Remove yourself from this list, simply send an email to > <[EMAIL PROTECTED]> with the > body of "SIGNOFF AOLSERVER" in the email message. You can leave > the Subject: field of your email blank. > > -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.