| 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 |
Hi, We are working with PCM 1.6-110 on OpenVMS/VAX 6.1. We have tried to use the predefined action BROADCAST , which uses the executable image CONSOLE$BROADCAST.EXE, but we have encountered a bug. Running with CONSOLE$DEBUG on, PCM has been traced on and furnished us the following output : file console$tmp:BROADCAST___001.LOG .... $ Define CONSOLE$ACTIONNAME "Broadcast" $ Define CONSOLE$EVENTPORTNAME "Broadcast___001" $ CMACTION :== $CONSOLE$ACTIONS:console$broadcast $ CMACTION U ALL CONSOLE$BROADCAST: Broadcast procedure started CONSOLE$BROADCAST: Calling CMUserInit CONSOLE$BROADCAST: Event received : maria_event CONSOLE$BROADCAST: Userdata passed in is : U ALL CONSOLE$BROADCAST: Bad destination - Type : UL�I', Value : ALL CONSOLE$BROADCAST: Event received : CMgr Disconnect ... So the Type is false and the sys$brkthruw is never called. Examing the source code described at p.14-11 Example 14-4 in the PCM documen tation ( by the way, is it THE source code of the console$braodcast.exe ? ), we found that the variable bdr_type is never initialized and does not seem to contains \0 ( I am not a DEC C expert...). So can you give us a pointer to the source file ( corrected or not ..) as far as we can test it and eventually deliver it to a customer who needs the action to run ?? If the source file is available, please give us the compilation/link procedure. Thanks a lot. Is an IPMT necessary to report this problem ? Marielle Degage CSC France
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 1101.1 | adding /0 | 48243::MENICACCI | Mon Nov 27 1995 08:39 | 56 | |
Hi,
I extracted the console$broadcast code using bookreader.
After modifying a few things :
#include <DESCRIPT.h> by #include <DESCRIP.h>
adding missing % (%s instead of s)
strncpy(brd_type, ptr, 1);
brd_type[1] = '\0'; <====== main modification I made.
ptr++;
I'm not a C expert so I'm not sure of the code.
Now the log (if console$debug defined) looks like :
$ Set NoOn
$ Define CONSOLE$ACTIONNAME "broadcast_mod"
$ Define CONSOLE$EVENTPORTNAME "broadcast_m_001"
$ CMACTION :== $CONSOLE$ACTIONS:console$broadcast_mod
$ CMACTION U menicacci
CONSOLE$BROADCAST: Broadcast procedure started
CONSOLE$BROADCAST: Calling CMUserInit
CMUserInit: Enter
CMUserInit: Readroutine = 8840
CMUserInit: Errorroutine = 9768
CMCreateEventPort: Opening local transport event port <broadcast_m_001>
CMCreateEventPort: Open succeeded
CMUserInit: Leave (Normal)
CMUserGetMainloopEvent: Enter/Leave
CONSOLE$BROADCAST: Event received : 0_sysuaf
CONSOLE$BROADCAST: Userdata passed in is : U menicacci
CONSOLE$BROADCAST: Message for menicacci, type = U
POLYCENTER Console Manager Event Notification
System : halles
Event : 0_sysuaf
Priority : CRITICAL
Time : Mon Nov 27 1995 14:35:54
Text :
CONSOLE$BROADCAST: Transmitting event...
So now the type is OK but I never receive the broadcast message. The process
broadcast_m 001 remains HIB .
Has someone used console$broadcast with success ???
I also tried to replace console$braodcast with the one furnished in NSI_111.bck
but it behaves like .0.
Thanks for any input,
Maria. French TSC.
| |||||
| 1101.2 | It works now with CFS_125 | 48243::MENICACCI | Tue Jan 09 1996 03:57 | 3 | |
Hi, we installed CFS_125 and tested the console$broadcast, it works very well now. | |||||