[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2760.0. "Can you re-initialize the toolkit in same context?" by CERN::EJM (Rick N. Backer) Tue May 15 1990 10:52

    I have written a routine for someone that initializes the toolkit,
    creates an application context and connects to a specific node.  It
    then creates a CautionBox widget with a yes and no button whose labels
    are Accept and Reject.  The reason for this is that the user would like
    to announce a problem or task to be either accepted or rejected by an
    operator on a given node.  Everything works peachy-keen the first time
    but if the routine is called again it accvios while creating the
    CautionBox widget.  Is this another re-entrance problem??
    
    After the user activates one of the buttons or the timer times out, I
    do an XtDestroyApplicationContext and then return control to the
    caller.  Why does this croak upon the second call??  I'm pretty sure
    I'm not writing on anybodys stack as I've meticulously checked
    everything (??) and I've also checked that the arguments pushed for the
    call to CautionButtonCreate are good.
    
    Any ideas??  I can supply the routines if need be.
    
    John
T.RTitleUserPersonal
Name
DateLines
2760.1my experience...GSRC::WESTHelp stamp out and abolish redundancy !Tue May 15 1990 14:1214
  Are you using XtInitialize(...) or XtToolkitInitialize() ?

  In any case I think you can only one INITIALIZE per process activation.
I had the same problem a while back.  I did just one INITIALIZE and I even
kept the app context and just re-used them.  This did the trick.

  This was done in DECwindows V1.0.  This may not be the case for V2.0.

  I also recall that there was a note talking about this and I think it had
something to do with a bug/feature of the toolkit.

						-=> Jim <=-