in reply to TK module weirdness

The error message leads me to believe that you have a place in your code where an object reference is being stringified. Since it seems to be revolving around a Tk::Text object, I would look for places where you are manipulating variables constructed from that class. Tk sets up a, shall we say, "creative" auto-loading scheme to catch calls to widgets and classes. It looks like it is trying to "autoload" a stringified reference to a Tk::Text object.

As the previous responder said, actual code would help in diagnosing this.

--rjray