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

Return to RouteRequest does not end it

$
0
0
Return to RouteRequest does not end it
Web Connection 5.0
Return to RouteRequest does not end it
08/03/2012
01:56:11 PM
3KC0TVE3Z Show this entire thread in new window
Gratar Image based on email address
From:
Joy Tan
To:
Attachments:
None
Hi Rick,

I'm try to fix some legacy code and the code has been so nested that I want to just post a response message and exit to top level bypassing continuation similar to exception handling, but in this case, it is application exit handling.

What can I call in the process method that will quickly handle sending my response object and end?

subclass of wwprocess --> calls myprog1 --> calls myprog2 --> calls myprog3 ---> "ooops, I want to send out a response and exit out here! what do I call?

Thanks,
Joy


Don't use RETURN TO ROUTEREQUEST - there are lots of issues with RETURN TO in VFP including call stack corruption and issues with the exception handling in Web Connection.

You should just return from the PROCESS method and be done with it. Why do you need to do this - there should never be a reason for this.

+++ Rick ---



Hi Rick,

I have some code that I need to just exit quickly to WC and complete request regardless of the program stack but the page does not get my response:

Response.Clear() Response.Write("We're done here!") Response.End() RETURN TO RouteRequest

WC returns to the read event, but the webpage does not get the response.

What am I doing wrong?

Thanks,
Joy




Viewing all articles
Browse latest Browse all 10393

Trending Articles