Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Working with COM in PB

$
0
0

Hello All,

 

I have created a COM wrapper dll for a webservice using C# which I want to call from PB (12.5.2 5609). My problem is that PB does not release the object after code has executed. Any ideas what am I doing wrong?

 

Here is my pb code:

 

Integer Rtn

OleObject oWS

 

oWS = CREATE OLEObject

Rtn = oWS.ConnectToNewObject ("myWS.class1") // Returns 0 = Success

 

Rtn = oWS.ProcessA () // Returns success

 

Rtn = oWS.DisconnectObject () // Returns 0 = Success

DESTROY oWS

 

The DisconnectObject returns 0 but the object is still in memory.

 

Thanks.


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>