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

Conference csc32::consolemanager

Title:POLYCENTER Console Manager
Notice:Kits, Scans, Docs on CSC32:: as PCM$KITS:,PCM$DOCS:, PCM$SCANS:
Moderator:CSC32::BUTTERWORTH
Created:Thu Aug 06 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1541
Total number of notes:6564

311.0. "Strange ENS problem" by SIOG::BATEMAN (We are all DECservers) Wed Jul 20 1994 20:56

    I'm seeing a strange problem with PCM using the CMUserSendEvent() call
    on OSF/1. I am able to duplicate the problem with a minimal program which
    I will put in the reply.
    
    Anyway, calling CMUserSendEvent() works fine the first few times it is
    called. Then suddenly I see garbage in one of the fields in the event
    window of C3 - in the VLIST widget either the priority or the system
    cell in the last row looks corrupt. In particular if I let a few events
    build up and select the Show Context for Selected Events option, return
    I return to the VLIST the source cell is corrupt.
    
    On the 4th or 5th call to CMUserSendEvent() it hangs for about 10
    seconds before returning 203 or 204. At this point one of the C3 windows
    disappears and I find console_ensd has core dumped.
    
    I initially thought there was a bug in my code but I've duplicated with
    a minimal program.
    
    Alan
T.RTitleUserPersonal
Name
DateLines
311.1cc -o testpcm testpcm.c -lconsole -lX11 -lXt SIOG::BATEMANWe are all DECserversWed Jul 20 1994 20:5826
#include <stdio.h>
#include <time.h>
#include <console.h>

main()
{
    int sts;
    time_t event_time;
    static CMContext ENS_Context;

    event_time = time(0);

    sts = CMUserSendEvent( &ENS_Context,
                           "mizen",
                           "name",
                           "class",
                           "info",
                           "text",
                           event_time,
                           CMPriorityCritical,
                           "subsystem",
                           "source");

    if (sts != CM_NORMAL)
       printf("Bad return from CMUserSendEvent = %d\n", sts);
}
311.2still not working41318::BATEMANWe are all DECserversTue Aug 09 1994 16:1610
    
    I've just returned to this problem and I'm still baffled. The test
    program in the previous reply still causes console_ensd to crash if I
    run it a few times. I have removed everything else from the equation
    except for the test program and PCM V1.3 on OSF/1 V2.0. I have also
    verified the database in else that was the problem.
    
    Any ideas,
    
    Alan.
311.3OPG::PHILIPAnd through the square window...Tue Aug 09 1994 18:107
Alan,

  I have reproduced this, It looks like a trick one
  so it could take some time to fix.

Cheers,
Phil
311.4OPG::PHILIPAnd through the square window...Thu Aug 11 1994 16:508
 Found it, Fixed it, Phew what a relief!!

 Alan, I'll be in touch off-line about a new image
 for you to try out.

Cheers,
Phil