SNsdk on WinNT ?

Marta Stojanovic marta.stojanovic@nrc.ca
Fri Dec 15 14:41:00 GMT 2000


>
> >I wouldn't mind, but it doesn't work for me : do you use File-Source ...
> >from hyper's console ? Or you type  directly the name of the script with
> >it's arguments ? In the first case it crashes immediately after. In the
> >second case it gives me :
> >couldn't execute "my_script.tcl": invalid argument . Any idea why ? It
> >works very well on Linux. For Windows I erased everything from the
> >beginning to the end of the line "exec hyper ..." .
>
> We will be looking at this problem in detail in January. I am sorry this
> won't help you now.

Hi Sid!

Well, I didn't want to wait until January, so I tried to recompile SN on WinNT
using as APPNAME \"hyper.exe\" in Makefile.am. As you can guess, it was not an
easy task (I have MSDEV 6.0, not 5.0) ... there was an error concerning stat.h
(it couldn't find the field st_blksize at "stat" struc from stat.h : that
structure is different in stat.h from MSDEV and from Cygwin). I tried to give
it Cygwin's stat.h, but than time.h didn't work etc. etc.

So, I moved to Makefile.am again, in order to comment everything concerning SN
and to leave only lines for snsdk. Again, problems with compilation : grep.obj,
LNK20001 etc..

Finally (it took me time), I remembered that snsdk is in fact only one file :
winCon.c. So I compiled it under MSDEV 6.0 with -DAPPNAME=\"hyper.exe\" as an
option, and it WORKED FINE ! Well, not that fine in fact : now this new .exe
file executes very well (thanks God!) my Tcl script, but it crashes at the end
(Xavier mentioned that, so I think he did the same thing). When it crashes, the
window with Application Error comes up, and if you click on Cancel to debug it,
another error message appears :

        Unhandled exception in hyper.exe (SNTCL81.DLL). Access violation.


I tried to see whether the error comes from winCon.c code, but it seems to me
that it's an error in hyper's code. Do you have any idea of why this error
takes place ?

Just one more thing : if I don't put "exit" at the end of my Tcl script, it
won't give me that error message, but it will wait for my Ctrl-C to end. Seems
that it doesn't handle that "exit" very well, but again I don't know whether
it's hyper or snsdk. Any idea ?

Thanks.

Kind regards,
Marta.





More information about the Sourcenav mailing list