Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-05

About bug report 5098 (To Peter)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luiz Americo

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

Reply by email

Jonas Maebe
to Luiz Americo
Luiz Americo wrote 8 lines
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?

No, your program is buggy. You have to declare TFileWriter.destroy as "override". It "works" in bugwritetotext because there you call destroy explicitly (instead of free). In bugwritetextshared you call free, and because destroy is not overridden, your destroy is never called.

Jonas

Reply by email