I am using GetModuleHandle in my function. That function gets called every time I do an operation. I want to know if that function gets called again and again, will the GetModuleHandle cause any handle leaking (stack overflow or memory leaks or anything else). I actually know when it is getting called and when the break point is hit. But I am not able to figure out if GetModuleHandle is causing any handle leaks. Can anyone help me answer that. Thanks, and below is the function that gets called repeatedly on an operation.
void Myfunc(int iCtrlID) { HINSTANCE hinst = GetModuleHandle("r.dll");
s.LoadString(hinst, iCtrlID); // more code here // }