Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SDK, sapnwrfc, C++, rfcclose and memory

Former Member
0 Kudos

Hello,

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:

while(1)

{

RFC_CONNECTION_HANDLE myconnection;

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

if (myconnection != NULL)

RfcCloseConnection( myconnection, &errorInfo);

Sleep(100);

};

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

1 REPLY 1

Former Member
0 Kudos

for moving up