Re: [TDK] A wrapped app runs differently than when unwrapped: how to debug?
by Georgios Petasis other posts by this author
Jun 21 2008 2:18AM messages near this date
view in the new Beta List Site
Re: [TDK] A wrapped app runs differently than when unwrapped: how to debug?
|
[TDK] tablelist_tile case-sensitivity (RE: A wrapped app runs differently than when unwrapped: how to debug?)
Dear Jeff,
Thank you very much for your reply. I am quite puzzled about this.
I did a "teacup update-self" & "teacup update" today, before re-wrapping
my app.
From my app, I have removed a copy of tablelist, tclodbc & tktable I
had inside my application (in order to use the standard packages from
the 8.5 teapot repository). I re-wrapped my application, but today I
cannot get it to reproduce the problem
I had with excel. But I didn't see "teacup update" updating anything
related :-(
So, the only problem I now have is with the tablelist_tile package,
which does not work unless I do:
catch {package require tablelist_tile}
package require Tablelist_tile
For some reason "package require tablelist_tile" fails when the app is
ran unwrapped,
and "package require Tablelist_tile" fails unless I do a "package
require tablelist_tile" before when wrapped.
(doing only "package require tablelist_tile" when wrapped gives errors
when using the package. Doing both works ok.)
The problem is that I cannot reproduce any more the failure with excel
when wrapped. But I didn't changed anything.
And still, the executables I had built before do still have the problem
when interacting with excel.
So, I don;t have the problem any more, but also I haven't found the
cause for the failure I had (which was reproducable in at least 3
different PCs).
Best regards,
George
O/H Jeff Hobbs ÎγÏαÏ?ε:
> Hi George,
>
> George Petasis wrote:
> > I am facing a problem with TDK 4.1.0, which I don't know how to debug.
> > I have a medium-sized application in Tcl, with a few C extensions
> > (through SWIG).
>
> Are you sure that all your SWIG apps are (1) built with stubs and (2)
> 8.5 compatible (no internal Tcl access)?
>
> > The applications runs ok from the disk (unwrapped). Among other stuff,
> > it interacts with excel, and writes a spreadsheet.
> [wrapped with 8.5 basekit presumably]
> > BUT, the exe I get exhibits a slightly different behaviour: it is unable
> > to write the excel spreadsheet for some (but not all)
> > excel spreadsheets. So, something is different between the wrapped &
> > unwrapped applications. How can I find out what is different?
>
> Beyond the encoding issue mentioned, are you certain that when run
> unwrapped, it is using the same versions of libraries and core?
>
> > So, I tried to change the way I create the wrapped app, and decided to
> > use the tclapp GUI to do the wrapping. But with no success :-) What I
> > did was:
> ...
> > I wrapped my app, but not it fails finding a package:
> >
> > can't find package Tablelist_tile
> > while executing
> > "package require Tablelist_tile"
>
> This may be a missing dependency on Tablelist package usage, and a
> separate issue.
>
> > During wrapping of course, the package was there:
> ...
> > BTW, my app works as a wrapped one with 8.4 & TDK 3.x. Including
> > writting the excel spreadsheet for the files
> > that now fails. How to debug this?
>
> What if you use 8.4 with TDK 4? I suspect it is more likely an 8.4/8.5
> variation rather than TDK 3/4, but I want to be sure.
>
> Regards,
>
> Jeff
>
_______________________________________________
TDK mailing list
TDK@[...].com
http://listserv.ActiveState.com/mailman/listinfo/tdk
Thread:
George Petasis
Jeff Hobbs
Georgios Petasis
Andreas Kupries
Georgios Petasis
Andreas Kupries
|