Ok. So moving our STARTUP method into a stored procedure using
        $procID:=New Process(“STARTUP”;512000;”On Server Startup)

takes care of BOTH problems.

So it looks like the Application Server process on 4D Server v16R6 and higher 
is more sensitive to interface related commands like
        OPEN WINDOW
        SET MENU BAR
        DISPLAY RECORD

For the record, this startup method was fine up through 4D v15.4 HF3.

Randy

----------------------------------------------------------------------
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com <http://printpoint.com/> • 845.687.3741 • PrintPoint, Inc 
• 57 Ludlow Lane • Palisades, NY 10964 
Please send all email contacts to [email protected] 
<mailto:[email protected]>




> On Aug 6, 2018, at 10:15 AM, Randy Jaynes via 4D_Tech <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> I’ve spent the morning trying to track down why our database started crashing 
> when we quit 4D Server v16R6 on Mac OS…I haven’t tested yet to see if it 
> affects the Windows version as well.
> 
> I have tracked down 2 contributors to the crash.
> 
>       1) Calling SET MENU BAR during On Server Startup
>               - this crash will occur in a test database with only this line 
> of code in the On Server Startup method
>       
>       2) opening a small window for showing progress messages during the 
> startup routine. Especially important while running internal data update 
> routines
> 
> We use the same STARTUP method for both a client’s On Startup method and 
> server’s On Startup method, putting checks for (Application Type = 4D Server) 
> in appropriate places to skip over some pieces of code not needed on the 
> server.
> 
> So, item #1 is easy to fix by checking if I’m running on server or not.
> 
> Item #2, however, I need to solve a different way.
> 
> So the question to everyone here is: how to do you give feedback to the user 
> when starting up 4D Server?
> 
> My first attempt after this email is to move the current STARTUP method into 
> a stored procedure on the server using New Process to see if it just runs as 
> is.
> 
> I just wanted to see what others might suggest as well.
> 
> This STARTUP method has been working fine through many versions of 4D and 4D 
> Server. I know every new version of 4D gets tighter and tighter in its 
> behavior and coding needs and I have to adapt. Not complaining. Just need to 
> find out how to get my code tighter. :-)
> 
> Randy
> 
> ----------------------------------------------------------------------
> Randy Jaynes
> Senior Programmer and Customer Support
> 
> http://printpoint.com <http://printpoint.com/> <http://printpoint.com/ 
> <http://printpoint.com/>> • 845.687.3741 • PrintPoint, Inc • 57 Ludlow Lane • 
> Palisades, NY 10964 
> Please send all email contacts to [email protected] 
> <mailto:[email protected]> <mailto:[email protected] 
> <mailto:[email protected]>>
> 
> 
> 
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html 
> <http://lists.4d.com/archives.html>
> Options: https://lists.4d.com/mailman/options/4d_tech 
> <https://lists.4d.com/mailman/options/4d_tech>
> Unsub:  mailto:[email protected] 
> <mailto:[email protected]>
> **********************************************************************

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

Reply via email to