mfcmdi

MFC MDI - "Encountered an improper argument"


I have embedded VLC player into an MFC MDI application. Whenever I close the child frame which contains the embedded VLC platyer, a messagebox with the following message pops up "Encountered an improper argument". If I close the application after this messagebox pops up. It doesn't close. The application goes to background and then I have to go to Task Manager and kill the application. This happens only in the Release build. I never encountered this error in the Debug build. Please let me know how to solve this problem.


Solution

  • Sorry, I solved this problem. I had written wrapper class around the libmysql in my application. The problem was due to some memory leak happening in my wrapper class.