RE: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-10 Thread Epperlein, Lutz (agendo) via 4D_Tech
To refer to the original cause of the crash ... Unfortunately the compiler doesn't find such problems (negative array index variable), this is a typical runtime problem. All what you can do is to write "defensive" code, e.g. checking the value of an index variable, using error handler, don't

RE: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-09 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha, Thanks for the tip. Tons and tons of errors in the first run of Check Syntax in the compiler. It is nice that it highlights the line numbers/issues in an open method. The errors though are mostly or all, “The Variable xxx has not been explicitly declared in the typing methods.” As I

RE: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-07 Thread Timothy Penner via 4D_Tech
Aloha Sannyasin, I probably sound like a broken record talking about the compiler so much, but I really wanted to comment on this: > As this is an internal database for our non-profits, it’s run in interpreted > mode, so no compiler checking done. > I do a decent amount of the programing (for

Re: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-07 Thread Sannyasin Siddhanathaswami via 4D_Tech
Thanks! I’ll be using both of those tips. I haven’t used On Error Call much, but will look into it. At a minimum, I want: “On Error, don’t crash my server!" Sannyasin Siddhanathaswami On Apr 7, 2017, 9:12 AM -1000, wrote: Sannyasin, Two things: I make it a habit to check for -1 anywhere I'm

Re: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-07 Thread Kirk Brooks via 4D_Tech
Sannyasin, Two things: I make it a habit to check for -1 anywhere I'm using Find in array... it just bites me if I don't. For methods that run on the server, or even better for processes that run on the server, wrap them in an On err call method that lets you manage the errors yourself. Like not

RE: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-07 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha, Yes. The crash did happen when accessing an array with a negative index! If that’s the only thing that causes the crash, I can be extra careful about that and do checks. Thanks for pointing this out. And yes, I wrote that serious bug. :) As this is an internal database for our

Re: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-07 Thread npdennis via 4D_Tech
> What compiler settings do you use? Do you have the range checking ON (top option in the compiler settings)? If not you should. -- Neil Dennis 4D Developer since 1990 GreaText - Designing Software for the Way You Work 716 East 1850 N North Ogden, UT 84414 mailto:npden...@greatext.com

RE: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-07 Thread Epperlein, Lutz (agendo) via 4D_Tech
Behalf Of Joshua Hunter > via 4D_Tech > Sent: Thursday, April 6, 2017 11:56 PM > To: 4D iNug Technical <4d_tech@lists.4d.com> > Cc: Joshua Hunter <jos...@dwdev.com> > Subject: RE: 4D Server Crashes When Tracing Buggy Web Connection Code > > The web server proces

RE: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-06 Thread Joshua Hunter via 4D_Tech
: Thursday, April 6, 2017 2:14 PM To: 4D iNug Tech Cc: Sannyasin Siddhanathaswami Subject: 4D Server Crashes When Tracing Buggy Web Connection Code Aloha, If I trace On Web Connection code on 4D Server v15.3 Mac, and I goof and reference an out of index array (I know I’m the first to ever do

4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-06 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha, If I trace On Web Connection code on 4D Server v15.3 Mac, and I goof and reference an out of index array (I know I’m the first to ever do that), our server crashes. It just quits to the Finder, no error message nothing. I view the trace via screen sharing to the server machine. This is