Closed Jonathhhan closed 3 months ago
I can confirm this using the C-API in .NET.
Calling free_sd_ctx
causes a silent crash with error code 0xc0000374 (HEAP corruption)
The issue is solved by PR https://github.com/leejet/stable-diffusion.cpp/pull/200
Thats how it was working before:
Now it works, if I do not free the
sd_ctx
. But then the memory from the old context is still allocated.