Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to register TclNotifier window class

454 views
Skip to first unread message

sindb...@googlemail.com

unread,
Mar 16, 2009, 10:56:26 AM3/16/09
to
Hi all,

I tried to enhance an existing Application with an Tcl interpreter.
This
Application starts several thread to parse some different files. The
threading is done by win32 mechanism.

In every thread I do the following things:

// On thread Startup
TclInterp = Tcl_CreateInterp();
Tcl_FindExecutable(NULL);
Tcl_CreateCommand(TclInterp, "myCallback", TclCallbackCmd,
(ClientData)this, (Tcl_CmdDeleteProc*) NULL);
Tcl_EvalFile(TclInterp, "MySript.tcl");


....

//Pass some data and do some work
while ( ... ) {

Tcl_Eval(TclInterp, "myCommad param1 param2");

}

....

// On thread shutdown
Tcl_DeleteCommand(TclInterp, "myCallback");
Tcl_DeleteInterp(TclInterp);

This runs fine so far for a lot of cycles but it randomly hangs up
after
several hours or days. I get the following error:

Unable to register TclNotifier window class.
This application has requested the Runtime to terminate it in an
unusual
way.
Please contact the application's support team for more information.


Calling the function GetLastError() returns the windows error code
1410.
The meaning of that code might be “class is already existing”.

Anybody know what this error means and how I might correct it?

Kind Regards.


0 new messages