Board index » cppbuilder » BSTR returned from ActiveX leaks
Harald Hjelmset
![]() CBuilder Developer |
Fri, 25 Jul 2003 16:49:15 GMT
BSTR returned from ActiveX leaks
Hi
I am using C++Builder 5.0 with upgrad pack 1. When i call the function below (lp->get_Name()) residing in an third party ActiveX component, the program loose memory. The function I am calling looks like this: //************************** I call the function like this: for (int i = 0; i < 1000000; i++) { Quote} The method (lp->get_Name()) is in an ActiveX control (MapX) made by MapInfo When I comment the lines below there is no leak: Is there another way to receive BSTR's that doesn't leak memory, or am I Best regards, Harald Hjelmseth |