This behaviour is very odd indeed. The pointer received from the function is
not **nil**, but it is not valid though. Is it possible situation if the
stbi_load function would return the actual cuchar(s) instead of the pointer?
You might also want to check the numeric representation of the returned pointer
using the following code:
echo cast[pointer](data).repr
It should not fail even when the pointer is invalid.
