Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Port Listener: VFP or C++ or ??
Message
From
19/02/2015 14:37:53
 
 
To
19/02/2015 11:52:50
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01587348
Message ID:
01615595
Views:
59
>>>>Walter, fairly sure it's caused by the code downloaded from the wiki that uses an object property to store the message byte by byte. As you'd expect, I'd have used a VFP cursor with a memo field that runs like a scalded cat even if it decides to spool to disk... but see other message for the solution I think we came up with.
>>>
>>>John, just stumbled across this message. Were you able to resolve it?
>>>We have stumbled with similar problems, only to find out that the WinSock control needs to have the ERROR event implemented. If you don't your application will freeze and eventually run out of memory.
>>>
>>>also, just use TRY CATCH to catch any error and log it.
>>
>>even with try catch in place there is a good chance that your memory will be leaking/fragmenting without GC able to compact free areas due to error [objects?]
>
>Not sure what you mean. GC? FWIW, we've got HL7 interfaces that run for years without interruption, pure VFP code.
>
Garbage Collection.
Some errors will make piecemeal out of vfp memory, even if the offending line is encapsulated inside try-catch blocks if encountered often enough.
So even if John puts Try-Catch arount the line, chances are that after logging a few hundred errors the application still could either run out of memory or slow down so much to be unusable.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform