HP3000-L Archives

April 2000, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lee Courtney <[log in to unmask]>
Reply To:
Lee Courtney <[log in to unmask]>
Date:
Sun, 30 Apr 2000 09:22:08 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
Adrian G. Halmagyi <[log in to unmask]> wrote in message
news:F4B1826B1A21D211AEC5006008207AF404F88A2C@dogbert.csillc.com...
        I'm trying to enable Procedure Exits on MPE/iX 6.0. I wrote using C
a simple handler that is to be executed before any call to FOPEN intrinsic.
I  wrote an arm and a disarm program also. The handler just prints a message
using PRINT intrinsic.
        I've tried to enable PE and my handler on SESSION.PUB.SYS process
and all processes created by this one.
        The handler works fine on processes existing at arming time (the
call of PEARM).
        BUT, processes that are created when PE and the handler are enabled
remain linked to the handler library even after disarming (call of
PEDISARM). The disarming works - I mean that the handler is called no more
but why do those processes use the handler library?
        Not to mention that if use C libraries when linking the handler, it
gets my system to freeze.
        Can anyone help me on this one or point me on where can I find
documentation?

Thank you,
Adrian G. Halmagyi

That's the way PE works, once linked the handler remains bound to the
process and the handler library remains open until the process dies.
Unfortunately there is no way to 'unbind' the reference to the handler
library. Your system "freezes" when you use the C library- is your C program
binding (linking) to the POSIX library or the "MPE" library?

Regards,

Lee Courtney
Monterey Software Group Inc.
1350 Pear Avenue, Suite J
Mountain View, California 94043-1302
(650) 964-7052 voice, (650) 964-6735 fax, (408) 237-1705 beeper

www.editcorp.com/Businesses/MontereySoftware

ATOM RSS1 RSS2