[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
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 |
250.0. "CMUserSendEvent events" by EEMELI::OJUSSILA (Olli Jussila, IS/SMGT Finland) Fri Apr 22 1994 13:34
With Simon's help I build a test program sending event
to ENS of PCM V1.1 using CMUserSendEvent.
Sending event works just fine. Icon of the system to which event is
sent changs colour and event appears in Event list window.
But if show context of event is select for external event
Event list window crashes.
I tested this in VAX/VMS and in ULTRIX system.
Of course there is no sense to to try to get any context for
external event but software should't crash. I have defined
show context as default action for double click.
here is process dump from VMS system
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual
address=00000000, PC=000133AC, PSL=03C00000
Improperly handled condition, image exit forced.
Signal arguments Stack contents
Number = 00000005 35030004
Name = 0000000C 00456158
00000000 20697246
00000000 20727041
000133AC 31203232
03C00000 20343939
313A3531
37333A36
0035BD00
00000000
Register dump
R0 = 00000001 R1 = 000167FF R2 = 00000000 R3 = 7FEC0000
R4 = 00456358 R5 = 00000000 R6 = 00000000 R7 = 00000001
R8 = 7FEC6968 R9 = 003FA8C8 R10= 00000001 R11= 7FEC6DE0
AP = 7FEC67D0 FP = 7FEC6790 SP = 7FEC680C PC = 000133AC
PSL= 03C00000
Here is a test program
-----------------------------------------------------------
#include <console.h>
#include <stdio.h>
#include <time.h>
#include <console.h>
#include <string.h>
CMContext ENS_Context;
char* class = "PSW";
char info[512];
char* text;
int priority;
char* subsystem;
char* source = "PSW";
int My_index;
time_t event_time;
int status;
char* name = "PSW";
char *ErrString;
char* system = "OLLI";
int main()
{
sprintf( info,"Message from PSW: %s", "Olli is testing");
event_time = time(0);
priority = CMPriorityCritical;
status = CMUserSendEvent(&ENS_Context,
system,
name,
class,
info,
"OLLI's TEST",
event_time,
priority,
subsystem,
source);
}
T.R | Title | User | Personal Name | Date | Lines |
---|
250.1 | Noted!! | OPG::SIMON | | Fri Apr 22 1994 14:03 | 10 |
| Olli,
yes you are right, I shall pass that on to Phil to look at. It may take
some time to get a fix as Phil is in Hong Kong on vacation. For PCM events
he handles this condition by putting up window with no context available. He
should do this for the External ones as well.
Watch for fix in an ECO kit.
Cheers Simon....
|
250.2 | Ok | EEMELI::OJUSSILA | Olli Jussila, IS/SMGT Finland | Sat Apr 23 1994 09:02 | 9 |
|
Thanks Simon,
We just have to tell to customers if they ask about this
there is fix comming.
So we will see PCM V1.1 on June's CDROM's
-Olli
|
250.3 | | OPG::PHILIP | And through the square window... | Mon May 16 1994 13:00 | 8 |
| OK,
I'm back, Olli, I'll take a look at this for you,
however, you wont see a fix until we issue our
first patch kit.
Cheers,
Phil
|
250.4 | | OPG::PHILIP | And through the square window... | Tue May 17 1994 11:56 | 8 |
| OK,
Fixed!! A minor case of a missing if statement!
The fix will be in the first patch kit.
Cheers,
Phil
|