Closed alfredbaudisch closed 7 months ago
Removes the os.close(logh) call at the end of main_release.odin.
os.close(logh)
main_release.odin
main_release.odin currently calls:
log.destroy_file_logger(&logger) os.close(logh)
But destroy_file_logger already closes the file handle:
destroy_file_logger
destroy_file_logger :: proc(log: ^Logger) { data := cast(^File_Console_Logger_Data)log.data if data.file_handle != os.INVALID_HANDLE { os.close(data.file_handle) <------------------------- } free(data) }
The extra call os.close(logh) is crashing the application upon being closed:
game_debug.exe: An invalid handle was specified.
Thank you!
Removes the
os.close(logh)
call at the end ofmain_release.odin
.main_release.odin
currently calls:But
destroy_file_logger
already closes the file handle:The extra call
os.close(logh)
is crashing the application upon being closed: