System state programs can call user state programs.  The one problem
typically encountered in this situation is that any parameters declared
in the system state program are, by default, in the system domain and
so any reference to them by the user state program will cause a domain
failure.  The system state program, because of the domain of the storage,
must allocate some user domain storage, copy the parameter values to
this user domain storage, and then pass the addresses of the user
domain storage.  The domain of the programs is not relevant in this
particular scenario.

Bruce

>
>forget the help text (I only included that as a curio) . My testing
>shows:  if I make a system-state program in the user domain
>then it cannot call a user-state program in the same domain, it
>can call an inherit-state program.
>So, how can QCMD call my user-state program?
>Now QCMD is in the system domain so maybe system domain
>system-state programs can call user-state programs in the
>user domain. All this can be verified by testing, I just thought
>that someone in this august body of list lurkers knew to spare
>me the testing.
>


+---
| This is the MI Programmers Mailing List!
| To submit a new message, send your mail to MI400@midrange.com.
| To subscribe to this list send email to MI400-SUB@midrange.com.
| To unsubscribe from this list send email to MI400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: dr2@cssas400.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.