cancel
Showing results for 
Search instead for 
Did you mean: 

Calling RfcClose() while handle in use causes my C++ application to crash

Former Member
0 Kudos

Hi!

I was hoping someone here could help me with this. I am using librfc32u.dll in my application. My application invokes RFCs on SAP, using the SDK function RfcCallReceiveEx(). At times, this call takes too long, so, from another thread, I do a RfcClose() on the connection handle.

Nearly all the time this seems to work (i.e., it successfully cancels the execution). But a couple of times I have seen that it causes my application to crash.

I wanted to know whether such a programming approach is allowed or not.

Thanks,

Mustansir

P.S. If this is not the appropriate forum for this question, please help me out and let me know where i should redirect this question to. Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

Hi,

The reason to crash may be because of time out happens due to more processing time. This may be because of resource consumption or process load etc.

For this you can try out with increasing relavent SAP system parameters with the help of SAP BASIS.

Now, btw, are u connecting a C++ application into SAP ?? ,

Even you can post this in this thread: may be useful: Java

Hope this helps,

Rgds,

Moorthy