The bug 5098 was marked by Peter as not a bug because the file handle would be opened inside a dll (another process), but the examples where the bug is show does not uses another process or dll. It simply implements a class in a separeted unit and then create a instance of this class inside another unit. Also notice that when using this class directly from a program it works fine.
Shoud i re-open the bug?
Luiz
