Hi Bruce,
then I problably know what is causing this and this is due to my own actions (see attached screenshot with code I inserted, line number might be off ... as the gpf report is from an exe I shipped months ago)
I'm trying to send a resource (file) when wsResources/resources is hit. It then calls "resources" (to validate api-key and the lot) which is a netwebservicemethod procedure.
I guess sometimes this doesn't return the correct data ... and crashes the server.
What I'm actually trying to accomplish is "send" the file from within the netwebservicemethod procedure (I commented out the line that was intended for this purpose, but adding the sendfile there doesn't work (I think it starts a recursion).
If you can pinpoint me in the right direction with the latter, the code in NetwebWorker can be removed
This is the part that now returns the filename to serve (SELF.rData is a StringTheory object that is returned to the call, NetWebWorker in this case and now contains the actual filename to be served):
IF lDownLoadOk
IF ~EXISTS(lFnResourceFull)
lDownloadOk = False
END
END
IF lDownloadOk
p_web.HeaderDetails.ContentDisposition = 'attachment; filename="' & CLIP(lFnResource) &'"'
p_web.ReplyContentType = p_web.GetContentType(lFnResource)
SELF.rData.setvalue('fn:' & lFnResourceFull)
ODS('value: ' & CLIP(SELF.rData.GetValue()))
!SELF.rP_Web._SendFile(lFnResourceFull)
SELF.SkipBuild = True
SELF.SkipSend = True
SELF.ReturnData = True
ELSE
SELF.rP_Web.SendError (400, 'Bad Request', 'The requested file was not valid') ! Bad Request
END