On Tue, 2003-02-18 at 16:44, Andrew Piskorski wrote: > On Tue, Feb 18, 2003 at 07:20:14PM -0500, Jim Davidson wrote: > > In a message dated 2/18/2003 5:53:54 PM Eastern Standard Time, > > [EMAIL PROTECTED] writes: > > > > - The BB_Nsv* C functions I've created in my nsvapi.c still aren't > > > working right in some cases, Tcl_GetCommandInfo is still claiming that > > > "nsv_set", etc. don't exist. This is despite the fact that the thread > > > calling these is now being spawned AFTER full server initialization. > > > Are you using Ns_TclAllocateInterp to get your interp with a NULL server arg > > within your Ns_ModuleInit? This would provide you a non-virtual server > > Nope. Mostly all I do in my Ns_ModuleInit is init a Tcl hash table, > name some mutexes, and create a Tcl command. Like this: > > static int BB_interpInit(Tcl_Interp *interp, void *data) > { > Tcl_CreateCommand(interp, "myapi", BB_TclCmd, NULL, NULL); > return NS_OK; > } >
As a side note, you may want to look into using the Object interface to Tcl, i.e. Tcl_CreateObjCommand. Of cource there may be reasons why you are doing it this way, but thought I would just mention it... --brett -- Brett Schwarz brett_schwarz AT yahoo.com