Click here to Skip to main content
15,883,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a COM server in which im using wstring
Is there a way to free the wstring after im done with it.
Posted

I found this article on wstring memory issue. You may find it helpful.
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1241618944/12[^]
 
Share this answer
 
You haven't: wstring releases memory whenever goes out of scope.
 
Share this answer
 
Comments
explorerC 25-Oct-11 5:22am    
But my application is crashing when i make huge number of calls to COM server Interfaces
Stefan_Lang 25-Oct-11 9:43am    
Then maybe you should go search for the cause of those crashes? You seem to be assuming that wstring is the cause? But if it really is, then you're doing something awfully wrong in your code, such as trying to store 50GB of data in RAM (I'm serious - I've seen worse!).

In any case, we cannot help you without seeing some of that code.
CPallini 25-Oct-11 14:35pm    
That's another (in fact, the only) problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900