You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gist of discord chat: there's file handle of the dot command itself which is still left open when doing "execute nex code", even when nex file header is set to close file handle of the nex file (and even if it would be set to keep it, the dot command handle should be probably closed?)
discord chat snippet:
Yep, if HEADER_FILEHANDLEADDR is zero, nexload calls F_CLOSE on the handle of the .nex file it F_OPENed earlier. There is also the handle of the dot command itself, which the OS deliberately leaves open when dots are exited with rst $20 as nexload does. This is meant for games that are written as dot command loaders to be able to load additional resources after exiting the loader.
lesg — Today at 14:05
@SevenFFF is the issue likely to be with the handle for the dot command itself?
SevenFFF — Today at 14:05
Yes
Arguably nexload should be calling M_GETHANDLE to get nexload own handle’s, and then F_CLOSEing that too before exiting
Unfortunately you can’t call M_GETHANDLE yourself, it only works inside the dot command
You can brute force call F_CLOSE on all 16 handles yourself. If you’re not planning to exit to the OS and you don’t have mode 1 interrupts running, this would be safe to do
todo: verify this and research if it makes sense to close the dot command FH and how.
The text was updated successfully, but these errors were encountered:
gist of discord chat: there's file handle of the dot command itself which is still left open when doing "execute nex code", even when nex file header is set to close file handle of the nex file (and even if it would be set to keep it, the dot command handle should be probably closed?)
discord chat snippet:
todo: verify this and research if it makes sense to close the dot command FH and how.
The text was updated successfully, but these errors were encountered: