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

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

2451.0. "A question on status returned from PROBE " by MICROW::LANG () Fri Feb 28 1992 10:36

    
    	I'm writing an AM that accesses a database.  I would like to
    	perform a few application specific calls in the PROBE
        initialization.  If the application specific calls fail,should
    	an MCC error status be returned, or should success be returned
    	and then when the directive is issued, an error "not properly
    	initialized" be displayed?  Ideally, I would like to return
    	a meaningful error to the user, but I don't see how.
    
    	Also, I would like to store the database name on startup in
    	global memory.  Is this an accepted practice?
    
    	
T.RTitleUserPersonal
Name
DateLines
2451.1TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Fri Feb 28 1992 11:5310
    The probe entry point is not a great place to communicate meaningful
    status to the user for the reasons you mention; however, if something
    as disastrous as failure of an MM to initialize occurs during probe
    I would simply printf from the MM - yeah it breaks the rules but it's
    better than the "Disappearing MM for no reason" approach.
    
    Since the probe entry point is called once per MM activation, it *is*
    a logical place to put once time initialization (like storing a DB
    name in global memory).  The SRM does say this.