File opened by DLL not staying open

2 views
Skip to first unread message

John McFarland

unread,
Jul 14, 2009, 6:05:00 PM7/14/09
to gg95
Hi,

I have a subroutine (say open_file) that opens a file and leaves the
file open so that other routines can access it (obviously this
subroutine does some other stuff too but not important here). This
subroutine is defined in a module that I compile into a shared
library. I primarily work under Linux and have not had problems with
using this routine before. However, I'm now trying to port the code
to Windows. What I've noticed on Windows is that when I call the
open_file routine from code defined outside of the DLL, the file does
not remain open after open_file returns.

Does anyone know if this is what I should expect when using
subroutines defined in a DLL?

Thanks,
John
Reply all
Reply to author
Forward
0 new messages