KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Cleaning the memory after using GET WEB SERVICE RESULT
PRODUCT: 4D | VERSION: 2003 | PLATFORM: Mac & Win
Published On: December 4, 2003
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

When performing a web service call, you can retrieve the results using the GET WEB SERVICE RESULT command. For a given Web service call, you may have to retrieve several results. Keep in mind that you will need to free the memory after each call to a Web service. To do so, pass the * parameter when performing the last call to the GET WEB SERVICE RESULT command.

For example, the following code retrieves two results after a call:

GET WEB SERVICE RESULT(return1;"return1")
GET WEB SERVICE RESULT(return2;"return2";*)

When retrieving the last parameter, return2, you will notice that the * parameter has been passed to clear the memory. If you fail to use this parameter, you will most likely face some memory leak problems when running this method.