Jump to content
Excelsior Forums
rayudu

FormatMessage pose a doubt to me

Recommended Posts

Hi,

I'm writing code in C++ using Microsoft function FormatMessage.

I found this is consuming main memory on most of the calls to it. I'm freeing the memory allocated by it using LocalFree(). I could find that this is occupying the memory in Task manager.

What should  I do to free this memory?

I'm running out of memory as the loop containing this iterates some lacks of times.

I wonder how this memory could stay even after exiting the function with this loop.

Please answer me as soon as possible.

Thanks and regards

Rayudu.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×