Jump to content
Sign in to follow this  
Yaron

Crash on exit when drive is removed

Recommended Posts

This is probably not high priority, but I thought I'd make a note of it,

 

If the drive running the application version of a mars project is removed, trying to close the app crashes, even if the drive is re-attached before closing.

I suspect it's due to the file handles being invalidated.

 

It happens to me because I debug mars from an encrypted drive that is automatically detached after several hours.

Share this post


Link to post

This can probably be avoided by changing the PE flags of the executable:

 

{$SETPEFLAGS IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP or IMAGE_FILE_NET_RUN_FROM_SWAP}

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×