Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: EXE unloads on every hit, OK in dev environment

$
0
0
Re: EXE unloads on every hit, OK in dev environment
Web Connection 5.0
Re: EXE unloads on every hit, OK in dev environment
Nov. 12, 2012
02:39 pm
3N50VEYF6Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Michael Hogan

Is VFP hard crashing? Is it hard C5 error? Check the Event log which might tell you something more. Compile your EXE with debug info and then also check the VFP install folder for a crash file (vfp9rerr.log in the runtime DLL folder).

Can you try to simplify and call something real simple with ExpandTemplate() to rule out that ExpandTemplate is the problem? What are you doing in the templates? What is referenced in the templates and what code is executing in templates?

Templates by their nature are hard to debug because they are basically evaluated so there's no line of code to capture - Web Connection just parses through the file evals experssions and executes code blocks one at a time - there's no program that runs.

You can try using ExpandScript instead (especially if you have embedded code blocks) which does produce a PRG and can give you a possible line number of where the code crashed if you're running with debugging on in the EXE.

+++ Rick ---



I'm finding it difficult to debug this problem. Site runs fine in the development environment (file mode), but when it's run as an EXE in file mode it crashes on every page hit. If I run the exe after the crash, the page is returned and the exe crashes once again.

Typically, my functions end in a Response.ExpandTemplate(lcTemplate)

My JSON calls don't appear to crash the EXE. They typically conclude with Response.Write(lcReturnValue)

No errors appear in the request log. WCErrors shows only:

2012.11.12 15:41:09:309 - 5540_680A8BA60B86 - 5540_680A8BA60B86 - Request Started - /CondoApp/Franklin/MonthCal.cdo? - 0 - 5540 - Com: -1:0:0
2012.11.12 15:41:10:577 - 5540_680A8BA60B86 - 5540_680A8BA60B86 - Request Completed (1265) - /CondoApp/Franklin/MonthCal.cdo? - 3 - 5540 - Com: -1:0:0

Unfortunately, I don't think I can SET STEP ON in the EXE, so I'm at something of a loss in debugging this problem.

Any advice?



Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles