rodman@hpcvlx.cv.hp.com (Steve Roderick) (11/06/90)
Can anyone provide more info on f_SetJump & f_LongJump. The TC manual says almost nothing on page 237. I called for TS but no one called back. The problem I am having is that I use setjmp and longjmp in the non TCL part of my program but when I do a longjmp the program goes into the ANSI library and comes back at the event loop. Not at MY setjmp. Thank in advance, Steve Roderick --------------------------------------------------------- Stephen Roderick rodman@hpcvlx.cv.hp.com Wouldn't it be great if we could all speak for ourselves! ---------------------------------------------------------
rodman@hpcvlx.cv.hp.com (Steve Roderick) (11/06/90)
I have since spoken with Phil at Symantec and he has responded well. No immediate solution. For everyones information, f_setjmp and f_longjmp have identical code with respect to setjmp and longjmp they are just used in the class library (I assume to avoid linking in ANSI). If someone else has had problems with setjmp, longjmp please letting me know about your experiences. This seems to only be related to TCL. Thank you, Steve Roderick --------------------------------------------------------- Stephen Roderick rodman@hpcvlx.cv.hp.com Wouldn't it be great if we could all speak for ourselves! ---------------------------------------------------------
phils@chaos.cs.brandeis.edu (Phil Shapiro) (11/06/90)
f_SetJump() and f_LongJump() are implemented in exactly the same way as setjmp() and longjmp(). Look at the source files, "jumps.c" and "SetJump.c". Why you're having the problems you describe I can't imagine -- make sure your JumpBuffer (or jmp_buf) contains correct information. -phil -- Phil Shapiro Technical Support Analyst Language Products Group Symantec Corporation Internet: phils@chaos.cs.brandeis.edu
rodman@hpcvlx.cv.hp.com (Steve Roderick) (11/08/90)
I case anyone is following this and is interested the Universe is back in order! The real problem was my own. I was unable to step through longjmp in the debugger when attempting to find an obscure bug, and then created a new one which via MAGICAL POWERS avoid crashing the machine and just generated unusual behavior. Words of wisdom: If you are starting a new project don't use setjmp & longjmp and definitely don't use multiple nested jump buffers!! P.S. Thank you Phil! (Quality people do exist!) --------------------------------------------------------- Stephen Roderick rodman@hpcvlx.cv.hp.com Wouldn't it be great if we could all speak for ourselves! ---------------------------------------------------------