@Lee
I am not sure of what 32k you are talking about..
I tried your source code in DBPro and watched the memory usage in the task manager. In the first 2-5 seconds the memory goes up a little, also when hitting a key (not escape), or clicking with the mouse. But after some seconds the memory is stable, I don't see any memory leak.
Nevertheless, I think there is memory allocated that is not really used. why? when you minimize the window, and then resize it, the memory usage has drastically reduced..
I could not run the latest force feedback demo since I have no force feedback...
Nonetheless of this strange memory usage, I do believe that the originally posted memory leak is only due to the usage of dbStr(), which allocates bytes for the char-array, but never gets freed.
greets
Barnski.
-- I just started with DarkSDK, by translating DBP Projects. --