Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory Limitation in WS?
Message
From
05/02/2003 12:10:07
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00749353
Message ID:
00749411
Views:
25
I couldn't figure out whether a WS would be considered FG or BG, so I tried this as the WS method:

FUNCTION test(cfile) as String
IF TYPE("cfile") = "C" and FILE(cfile)
SYS(3050,1,15000)
SYS(3050,2,15000)
cxml = FILETOSTR(cfile)
RETURN STRCONV(cxml,13)
ELSE
RETURN " "
ENDIF
ENDFUNC

Still no luck. A 173k file fails, but a 75k file works fine.

The error message I get is:
OLE IDispatch exception code 0 from mpgorderproc.SMOrder
mpgorderproc.SMOrder: .test
d:\comobj\orderproc\mpgorderproc.prg Error in line 787
-1073741571


MPGOrderproc is the project name. SMOrder is the class.
d:\comobj\orderproc\ is the location of the WS DLL. 787 is the line of code that runs STRCONV.

Any other ideas? Web Service troubleshooting is tough! There aren't a lot of resources available yet.

Thanks!
Brian





>Actually, it may be running out of memory - you may need to use SYS(3050...) to limit the amount of memory used. This usually happens with batch type jobs in VFP on Win2k,nt, xp ...
>>We're using a web service to process some data, build a PDF, then change the PDF into a base64 encoded string using STRCONV(cfile,13). The first 2 parts work great, but the STRCONV fails on files about 50k+.
>>
>>Has anyone experienced similar troubles?
>>
>>Is there a registry setting (SOAP or IIS) that limits the amount of RAM that can be used by a web service?
>>
>>Or perhaps there is another way (fast) to base64 encode a file?
>>
>>Thanks!
>>Brian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform