Received: by ATHENA-PO-2.MIT.EDU (5.45/4.7) id AA23968; Mon, 18 Sep 89 00:29:46 EDT
From: <rap@ATHENA.MIT.EDU>
Received: by ATHENA.MIT.EDU (5.45/4.7) id AA11169; Mon, 18 Sep 89 00:31:01 EDT
Received: by MORPHEUS.MIT.EDU (5.61/4.7) id AA08453; Mon, 18 Sep 89 00:29:34 -0400
Date: Mon, 18 Sep 89 00:29:34 -0400
Message-Id: <8909180429.AA08453@MORPHEUS.MIT.EDU>
To: bgardner@ATHENA.MIT.EDU
In-Reply-To: <bgardner@ATHENA.MIT.EDU>'s message of Fri, 15 Sep 89 18:07:19 -0400 <8909152207.AA03066@PINK.MIT.EDU>
Subject: Major problems with the ruleeditor.

   From: <bgardner@ATHENA.MIT.EDU>
   Date: Fri, 15 Sep 89 18:07:19 -0400

      Hi Rich. I'm trying to use re_OpenEditor, but it is dumping core.
   My call looks like:

	 editor_id = re_OpenEditor(Bool_FALSE,
					   rule_link->rule,
					   AlRsb_save_func, /* SaveFunction */
					   AlRsb_quit_func, /* QuitFunction */
					   0, NULL,
					   "Rule#", NULL,
					   callback_struct);

      Could you please take a look into this. I'm at abit of a stand-still until
   this is solved.
      Thanks.
	 -- Brian


OOOps, it seems like you are calling the function incorrectly due to a
discrepincy between the documentation in rem.h and the function declaration.
The documentation SHOULD read (and now does read)


/* --------------------------------------------------
reid re_OpenEditor(display,Rule,SaveFunc,QuitFunc,argc,argv,title,
		   Graphic,UserData)
Display* display;
AlRule Rule;
ReSaveFunc* SaveFunc;
ReQuitFunc* QuitFunc;
int* argc;
char** argv;
char* title;
XImage* Graphic;
VOIDP UserData;

RETURNS-- an reid which is the ID of the newly created ruleeditor.

display         The connection to the X server.  

Rule 		The rule to be edited.  This rule is not modified by
the rule editor.  The edited rule is passed to the SaveFunc.

	.			.
	.			.
	.			.



The difference is the first argument, it should be a display instead opf a
Bool. Sorry my fault I forgot to update the documentation when I remade the
function for X11r3.

But it does look like you are passing some invalid stuff to the ruleeditor
though.  

re_OpenEditor(0x0, 0xd60c0, 0x1a54, 0x1c04, 0x0, 0x0, 0x1915, 0x0, 0xe7b80) at 0

your 5th and 6th arguments are NULL when they should be an int* and char**.
This, needless to say, isn't good.  In the least your fifth argument (argc)
should be a pointer to an int which is 0 in which case your sixth argument
(argv) can be anything you want.

	--Rich.
