On Thu, 19 Aug 1999 [EMAIL PROTECTED] wrote:

> 
> I have succeeded in getting both Tcl 8.0.5 and TclBlend 1.2.3 built with
> debugging info. Unfortunately, I still get a crash as soon as the tclblend.dll
> is loaded. I turned on the debug flag in pkgIndex.tcl and everything seems in
> order. I noticed a link warning associated with the tclblend.dll build as shown:
> 
> set LIB=E:\VS6.0\VC98\lib

I think I got this warning from VC++ 6.0 too, it did not seem to break
anything.

> E:\VS6.0\VC98\bin\link.exe /debug:full /debugtype:cv /NODEFAULTLIB /RELEASE
> /NOLOGO /align:0x1000 /MACHINE:IX86 /entry:_DllMainCRTStartup@12 /dll
> /out:tclblend.dll E:\Tcl\Tcl8.0.5\src\win\Debug\tcl80d.lib
> E:\java\sun\jdk1.2.2\lib\jvm.lib msvcrtd.lib oldnames.lib kernel32.lib
> advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib @C:\TEMP\nma00176.
> 
> LINK : warning LNK4108: /ALIGN specified without /DRIVER or /VXD; image may not
> run
> 
> Creating library tclblend.lib and object tclblend.exp

Perhaps the problem is that you did not tell the ide where to find
the source files for Tcl. After you attach to the running process I
think there is an "open sorce file" option of something. Once you open
the first source file the debugger should be able to open the others
automatically. I can't remember the exact option or pulldown but you
should be able to figure it out.

> I don't know if this warning can be ignored, but putting the /driver flag in the
> link should not and did not solve the crashing problem and I can't imagine how
> the /vxd flag would help. I am quite new to Visual Studio and do not quite know
> how to set up debugging so that I can walk through the source code. I was able
> to attach to the running tclsh80d process, but this only provides a disassembly
> which is pretty much useless to me.

Just create an empty "single executable" project and then set the
full path name of tclsh80d.exe in the debug tab, then run the debugger.
This should start up Tcl inside the debugger and open up the Tcl source
in the debug display. I have done this before and it works just fine.

later
mo

> I also tried to create a project from the
> makefile, but this only created a project that contained one file --- the
> makefile --- which was also useless. I assume that you can debug the dll and
> trace into its source and probably trace into tcl 8.0.5 source as well.
> 
> Is there some way that I can set up Visual Studio so that I can debug Tcl 8.0.5
> and the TclBlend dll using the source without having to build a project by hand?
> 
> If it does have to be done by hand, does some kind soul have a project for
> Visual Studio 5 or 6 that they can send to me?
> 

----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
A list archive is at: http://www.findmail.com/listsaver/tcldallas/

Reply via email to