CFD Online Logo CFD Online URL
Home > Forums > FLUENT

ti-menu-... in (define... = error?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 30, 2004, 12:33
Default ti-menu-... in (define... = error?
Chris Bailey
Posts: n/a
I guess this question relates to the behavior of ti-menu-load-string inside a Scheme definition.

This trivial example works (it closes a graphics window):

(ti-menu-load-string "/display/close-window 1")

and it also seems to leave a boolean as its result.

But this doesn't:

(define shell (ti-menu-load-string "/display/close-window 1") )


It closes the graphics window then gives this error and dies:

Error: eval: invalid function

Error Object: #t

I think the Scheme eval procedure is choking on the boolean that ti-menu... returns, and somehow I need to eliminate it, but that's just a guess.

Big thanks for any help for this new user!

  Reply With Quote

Old   December 30, 2004, 15:36
Default Re: ti-menu-... in (define... = error?
Chris Bailey
Posts: n/a
Whoops - found it - I should have said

(define (shell)... instead of

(define shell ....

Just a newcomer's mistake.
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38

All times are GMT -4. The time now is 11:34.