Home > Archive > Tcl > March 2004 > StarPack Dll problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
StarPack Dll problem
|
|
| Glenn Halstead 2004-03-27, 12:26 am |
| Hi Folks,
Has anyone ever seen a problem with a StarPacked Tcl code that loads a
dll from outside of the starpack?
I've written a test exec which is delivered as a StarPack.
My user created tcl scripts to test his app. His tcl scripts are
sourced and executed by my test exec. His tcl scripts load in the dll
he has created so he can test it.
We are seeing a c++ style error dialogue appearing. This error does not
happen when we run the basic test exec code without wrapping it in the
StarPack.
Has anyone seen anything similar?
I can supply more details / examples.
Thanks
Glenn
| |
| Jeff Hobbs 2004-03-27, 12:26 am |
| Glenn Halstead wrote:
> Has anyone ever seen a problem with a StarPacked Tcl code that loads a
> dll from outside of the starpack?
...
> We are seeing a c++ style error dialogue appearing. This error does not
> happen when we run the basic test exec code without wrapping it in the
> StarPack.
The only dll extensions that a starpack may load safely,
inside or outside of the starpack, are those compiled with
stubs. Have you verified that precondition?
--
Jeff Hobbs, The Tcl Guy
http://www.ActiveState.com/, a division of Sophos
| |
| Glenn Halstead 2004-03-27, 12:26 am |
| Hi Jeff,
I'll have to do a bit of research to see what that means - I expect
that's my problem.
Currently we have a standard dll and a second Tcl interface Dll with all
the Tcl_CreateObjCommand style stuff.
I'm sure you can tell I'm no expert at this.
Glenn
Jeff Hobbs wrote:
> Glenn Halstead wrote:
>
>
> ...
>
>
>
> The only dll extensions that a starpack may load safely,
> inside or outside of the starpack, are those compiled with
> stubs. Have you verified that precondition?
>
| |
| Glenn Halstead 2004-03-27, 12:26 am |
| Hi Jeff,
I figure the following line from my tcl interface dll code means we are
using stubs:
#ifdef USE_TCL_STUBS
Tcl_InitStubs(interp, "8.4", 0);
#endif
Glenn
Jeff Hobbs wrote:
> Glenn Halstead wrote:
>
>
> ...
>
>
>
> The only dll extensions that a starpack may load safely,
> inside or outside of the starpack, are those compiled with
> stubs. Have you verified that precondition?
>
| |
| Wojciech Kocjan 2004-03-27, 12:26 am |
| Glenn Halstead wrote:
> Hi Jeff,
>
> I figure the following line from my tcl interface dll code means we are
> using stubs:
>
> #ifdef USE_TCL_STUBS
> Tcl_InitStubs(interp, "8.4", 0);
> #endif
The question is ... do you define USE_TCL_STUBS? :-)
Try searching for tcl84.dll (or tcl8?.dll :) string in your dll. If it's
there - then you're not using stubs.
--
WK
| |
| Glenn Halstead 2004-03-27, 12:26 am |
| Hi,
No we weren't actually using stubs.
Thanks for your help Jeff & Wojciech
Glenn
Wojciech Kocjan wrote:
> Glenn Halstead wrote:
>
>
>
> The question is ... do you define USE_TCL_STUBS? :-)
>
> Try searching for tcl84.dll (or tcl8?.dll :) string in your dll. If it's
> there - then you're not using stubs.
>
|
|
|
|
|