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 |
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.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2451.1 | TOOK::SWIST | Jim Swist LKG2-2/T2 DTN 226-7102 | Fri Feb 28 1992 08:53 | 10 | |
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. |