MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bug in 5.1,Linux, GUIKit?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52793] Re: [mg52746] Bug in 5.1,Linux, GUIKit?
  • From: Jeff Adams <jeffa at wolfram.com>
  • Date: Mon, 13 Dec 2004 04:23:03 -0500 (EST)
  • References: <200412111022.FAA06528@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

At 04:22 AM 12/11/2004, Steven T. Hatton wrote:
>This is a session demonstrating the problem:
>
>Mathematica 5.1 for Linux
>Copyright 1988-2004 Wolfram Research, Inc.
>  -- Motif graphics initialized --
>
>In[1]:= Needs["GUIKit`"];
>
>In[2]:= HelloWorld[]:=GUIRunModal[Widget["Panel",{Widget["Label",{"text" ->
>"Hello World!"}]}]]
>
>In[3]:= HelloWorld[]
>
>Java::argx: Method named runModalContent defined in class
>     com.wolfram.guikit.GUIKitDriver
>      was called with an incorrect number or type of arguments. The
>arguments,
>      shown here in a list, were {<widget src='Panel'>          , 1}.
>                                   <group root='true'>
>                                    <widget src='Label'>
>                                     <group root='true'>
>                                      <property name='text'
>                                          value='Hello World!'/>
>                                     </group>
>                                    </widget>
>                                   </group>
>                                  </widget>
>
>GUIRunModal::nvalid: The GUI definition contains invalid content.
>
>Out[3]= $Failed
>
>
>It looks to me that Java is expecting a boolean where it is getting `1':
>public boolean runModalContent(java.lang.String,boolean);
>     public boolean runModalContent(java.lang.String,int,boolean);
>     public boolean
>runModalContent(java.lang.String,int,java.lang.String,boolean);

Hello,

It is possible this is related to a problem with GUIKit in 5.1 running on 
some Linux/Unix platforms.
If no GUIRun or GUIRunModal examples work you may want to consider 
installing the patch
provided here:

http://support.wolfram.com/mathematica/packages/guikit/crashin51.html

Jeff Adams
Wolfram Research


  • Prev by Date: Re: Suse 9.2 + mathematica 5.0 problem
  • Next by Date: Re: multiple outputs from a function
  • Previous by thread: Bug in 5.1,Linux, GUIKit?
  • Next by thread: Re: Bug in 5.1,Linux, GUIKit?