Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SDK, sapnwrfc, C++, rfcclose and memory


can somebody help me?

I have made a software in visual c++ 2005 using sapnwrfc.lib (release: i use the library in the file NWRFC_2-20002217.SAR, Version:7.11 patch 0). This software uses more and more memory each time I call RfcOpenConnection and RfcCloseConnection. Then I made a an other software with this simple loop:




myconnection = RfcOpenConnection( loginParams, 8, &errorInfo);

if (myconnection != NULL)

RfcCloseConnection( myconnection, &errorInfo);



and it also uses more memory at each step of the loop. I suppose, I have to free memory used by myconnection handle, but how to do this ?

Thanks in advance

Edited by: pol rivart on Oct 15, 2008 9:03 AM

Edited by: pol rivart on Oct 15, 2008 9:03 AM

Former Member
Not what you were looking for? View more on this topic or Ask a question