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

Re: Error - zipfiles not found?

$
0
0
Re: Error - zipfiles not found?
Web Connection
Re: Error - zipfiles not found?
Mar. 20, 2013
06:52 pm
3QQ14G1Q4Show this entire thread in new window
Gratar Image based on email address
From:Harvey Mushman
To:Rick Strahl
Maybe... but it works for weeks and even when this error hits, the rest of the sytems continues to run fine and everything is held in business rules all coming out of set procedure files. Seems like if I blew away the set procedures that are all done in myAppMain the entire system would crash on the next hit. this is not the case - only the zipfiles causes the problem.

I'm wondering if maybe there is something that is being left open after zipfiles is called and maybe some stack gets overflowed?

I will add set proc to wwAPI additive right before I call createobject and see if this makes the problem go away.

Very strange.

Thanks for your input.

Sounds like you might be losing the SET PROCEDURE TO? Make sure all your SET PROCEDURE TO calls are made with ADDITIVE to not clear the procedure stack.

+++ Rick ---



Strange error keeps poping up from time to time... the problem is cleared by clearing out memory or restarting VFP. Below is the error message that is returned.

Error Message: File 'zipfiles.prg' does not exist.
Error Number: 1
Running Method: onload
Current Code: lnResult = zipfiles('c:\...myWConnect\reports\' +
JUSTSTEM(lcFilename) + '.zip',lcFilesToZip)
Current Code Line: 240
Exception Handled by: Cncprocess.OnError()

After restarting VFP the server works perfectlly!

The page code which is referred to above is as follows:

oAPI=CREATEOBJECT('wwAPI')* zip attachments and report into one download lcFilesToZip = lcFilesToZip + '" "' + 'c:\...myWConnect\reports\' + JUSTSTEM(lcFilename) + '.pdf"' lnResult = zipfiles('c:\...myWConnect\reports\' + JUSTSTEM(lcFilename) + '.zip',lcFilesToZip)this.cZipFile = [<a class="zipFiles" href="Reports/] + JUSTSTEM(lcFilename) + [.zip">Zip Download</a>]

In myApplicationMain I've included set procedure to wwAPI as well.

This application is running in file mode.

Any ideas would be greatly appreciated. <g>

--hm




--hm--


Viewing all articles
Browse latest Browse all 10393

Trending Articles