[PB 6.0 LTS] InitJoystick() leaks memory
Posted: Mon Oct 24, 2022 9:58 am
According to the manual InitJoystick() can be called repeatedly to count the number of joysticks connected, but every time this function is called some memory is leaked.
You can test it by running the following code and looking at the task manager:
Edit: It looks like it was caused by a driver (vjoy) not playing nicely with purebasic. I uninstalled it and the memory leak is gone. I guess this thread can be removed.
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
You can test it by running the following code and looking at the task manager:
Code: Select all
Repeat
InitJoystick()
Forever
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)