Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007841 [Squeak] VM minor always 11-16-15 08:58 11-16-15 20:57
Reporter Nicolai Hess View Status public  
Assigned To lewis
Priority normal Resolution open  
Status assigned   Product Version
Summary 0007841: error "please insert disk" (windows vm)
Description If you have a device (usb card reader) and eject the disk/card. Every access
on the directory list, that will ask the drive if it is empty, will
trigger a modal dialog:
"There is no disk in the drive. Please insert a disk into drive <etc>"

There is no way to bypass this error message dialog from within the image.
We need a change for the squeak windows vm.
Additional Information see thread http://forum.world.st/error-please-insert-disk-windows-vm-tp4859473.html [^]
Attached Files  bug_7841_error_insert_disk.patch [^] (1,749 bytes) 11-16-15 20:56

- Relationships

- Notes
(0014563 - 414 - 486 - 486 - 486 - 486 - 486)
Nicolai Hess
11-16-15 09:00

The solution I found is to call SetErrorMode(SEM_FAILCRITICALERRORS)

I would like to propose the following change to sqwin32directory.c
wrap the call to FindFirstFileW/FindNextFileW with

UINT prevMode = SetErrorMode(SEM_FAILCRITICALERRORS);
call FindFirstFileW/FindNextFileW
SetErrorMode(prevMode);

...

and call this functions in at least dir_lookup()
(the other file/directory methods are save).
 
(0014565 - 40 - 40 - 40 - 40 - 40 - 40)
Nicolai Hess
11-16-15 20:57

attached a patch with the suggested fix.
 

- Issue History
Date Modified Username Field Change
11-16-15 08:58 Nicolai Hess New Issue
11-16-15 08:58 Nicolai Hess Status new => assigned
11-16-15 08:58 Nicolai Hess Assigned To  => lewis
11-16-15 09:00 Nicolai Hess Note Added: 0014563
11-16-15 20:56 Nicolai Hess File Added: bug_7841_error_insert_disk.patch
11-16-15 20:57 Nicolai Hess Note Added: 0014565


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
40 total queries executed.
31 unique queries executed.
Powered by Mantis Bugtracker