> On Nov 15, 2016, at 4:08 PM, James Crate <[email protected]> wrote:
> 
> However, you can’t call OPEN DATA FILE from the On Startup database method, 
> or any method called by it. Is there a recommended way to run code after the 
> On Startup method has finished? POST KEY to a special menu item in a special 
> menu is kind of a kluge. If you call OPEN DATA FILE from a new process, does 
> that process need to wait for On Startup to finish before calling OPEN DATA 
> FILE? If so, will it be accurate enough to check process status of the main 
> process? Or would we still have to start up whatever we are using for 
> interprocess communication so that On Startup can tell the other process that 
> it is finishing?

I agree it would be better if OPEN DATA FILE and CREATE DATA FILE would just 
abort startup and shutdown if called during startup. But it is not too much 
trouble to launch a separate process and wait for the startup to complete. Just 
have the process check process 1 for status = Waiting for user event.

John DeSoi, Ph.D.

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to