in reply to CGI tempfiles w2k/IIS/AS

CGI.pm is silent when the unlink of a temp file fails. Perhaps you could add a warning to the destructor of CGITempFile and see what comes floating up? In my version of CGI.pm (2.81) that would entail changing line 3373 to:
unlink $$self or warn "Something wicked: $!\n";
That should give you an idea as to what went wrong in the unlinking.

CU
Robartes-

Replies are listed 'Best First'.
Re: Re: CGI tempfiles w2k/IIS/AS
by jdv79 (Sexton) on Oct 28, 2002 at 07:13 UTC
    This did reveal the error: Permission Denied. I checked the directory and "everyone" has "full control" in it. I am thinking that maybe the module is trying to delete the temp file while it still has an open handle on it. I don't even know where that handle is. The module API provides a funky reference to the handle that seems to be some sort of alias. Can anyone think of any other reason that permission would be an issue? Does anyone know how to close the handle?