Re: Tk8.5: Tk_PhotoSetSize vs Tk_PhotoSetSize_Panic



On Feb 29, 1:04 pm, Donald G Porter <d...@xxxxxxxx> wrote:
sbromle wrote:
I'm getting a crash moving from Tk8.4 to Tk8.4 on the call
Tk_PhotoSetSize().

I assume that's a typo and you are migrating from Tk 8.4 to Tk 8.5.

See TIP 116 (http://tip.tcl.tk/116) and the Tk 8.5 documentation
for Tk_PhotoSetSize() (http://www.tcl.tk/man/tcl8.5/TkLib/FindPhoto.htm)
for details on how to use the -DUSE_PANIC_ON_PHOTO_ALLOC_FAILURE
directive as a migration tool when compiling your code.

--
| Don Porter Mathematical and Computational Sciences Division |
| donald.por...@xxxxxxxx Information Technology Laboratory |
|http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|


Thank you kindly Don,

My problem was that I had a -I/usr/include/tcl8.4 line in my AM_CFLAGS
definition left over.

Now I'm faced with another issue. The tcl8.5.m4 macro allows automake
to
define TCL_LIBS, etc, but I don't see where TCL_INCLUDES (or similar)
would
be defined. Is there a way to do that with the standard tcl8.5.m4
autotools
macros? Or must I fully adopt TEA3 (or write my own m4 macro)?

Is there is an easy way to get the -I/usr/include/tcl8.5 in a variable
through the use of --with-tcl=/usr/lib/tcl8.5 flag (used to find
tclConfig.sh)?

The existing tcl8.5.m4 file contains a macro SC_LOAD_TCLCONFIG that
sets TCL_LIB_SPEC but not TCL_INCLUDE_SPEC. Is there a reason why
this is not done? I.e, is it safe / does it make sense/ for me to just
add
a bit to that to also define and AC_SUBST(TCL_INCLUDE_SPEC) ?

Thank you!
Sam
.



Relevant Pages

  • Re: Macro to select files and then run different macro on selected file
    ... Application.Workbooks.Open pstrFilePath ... typo, ... Sub testing() ... Now everytime that macro is run, it will prompt you for a file to open, ...
    (microsoft.public.excel.programming)
  • Trying to get screamer working
    ... ; Byte Compiling Top-Level Form: ... from a nondeterministic context. ... function defined with DEFUN, the body of a call to the FOR-EFFECTS ... macro, the first argument of a call to the ONE-VALUE macro, the body of ...
    (comp.lang.lisp)
  • Re: Behaviors between Macros 2 Times
    ... > (defmacro test (x y z) ... > `(format t "this line is in vain because it is not retured by macro ... > this is compiling time ... > It means that the "macro machine" thinkns that the variables were ...
    (comp.lang.lisp)
  • Re: Macro modification
    ... The macro delete this last row each time because of the typo. ... In summary, I am copying rows ... >> Sub CopyData() ...
    (microsoft.public.excel.programming)
  • Re: Protected cells
    ... I don't understand about the not compiling if you recorded in xl2003. ... Dim myAllowEditRange As AllowEditRange ... In the macro I'm currently using is there a way ... what I meant is that I want to remove the users ability to edit the ...
    (microsoft.public.excel.misc)