solum icon indicating copy to clipboard operation
solum copied to clipboard

Memory leaks

Open J-Olejnik opened this issue 2 years ago • 2 comments

I ran into a problem while running your Qt example in debug mode. Everything works fine until you want to close the app with the 'X' button. When you do that, VS throws this exception: mem_leaks

Upon further investigation, I found out that this issue is related to the BLE connection, as the app closes normally until connected to the probes Bluetooth module (searching for available modules is fine, but after a successful BLE connection, it doesn't matter if you are connected to TCP/IP port or not, an exception is thrown when you try to close the application).

Steps to reproduce the behavior:

  1. Run app on Debug mode
  2. Go to BLE tab (you don't have to retrieve the probe credentials)
  3. Click on Search and Connect
  4. Close the app via 'X' button
  5. See error

Additional steps to reveal the cause of this issue prompted me to check for memory leaks. (simple _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);) After closing the app (nothing is connected, just opening the app and closing it right after) this message is printed in the terminal output: mem_leaks2

Environment:

  • Solum v10.2.2
  • Windows 10 Pro 21H2
  • Qt 5.15.2
  • MVS 2022

Hope this helps :)

J-Olejnik avatar Apr 14 '23 09:04 J-Olejnik

Thanks for reporting we will have look.

julien-l avatar Apr 18 '23 16:04 julien-l

This is probably fixed in the dev-threads fork (#37).

ClaudioHoffmann avatar Aug 11 '23 13:08 ClaudioHoffmann