Hi Anders, I found two problems with the component:
Memory leak.
Use MemCheck or FastMM4 and enabled the memory leak detection, run a project with the drag and drop component, you'll see the leak report.
Not unicode compatible with Delphi7.
I capture an URL with TURLDropTarget. Since the Title property is of type string in Delphi 7, the unicode text will be converted to ansistring using local codepage.
The leaks are known one time leaks and can safely be ignored, but I'll fix them for the next release.
You have a point about the Title property being ansi. I completely forgot that even though an URL can only be ansi, it is quite possible to have a title that requires unicode (?????????). I'll fix that too.
I have been using your component suite for a long time, to support interexchange of files within my application and to/from file system, Outlook etc.
However, after I upgraded from 4.1 to version 4.2 (and the 5.0 version), I can no longer stream Outlook msg-files. I use the TDropComboTarget class and stream data as follows:
This works well with version 4.1, but from version 4.2 the droppedItem.Size (TStream instance) reports 0, and the resulting file becomes empty, or 1kb and corrupted. I use Delphi 7 and FastMM4.
vt: Hello, please tell me how to hide drag image (if property ShowImage := True) in OnDrop event? Sometimes program...
Gregory: Hi Anders, Please, we need new version for XE2 :) Many tanks for your work ! You are great ! Thanks.
Simon H.: Hi Anders, Do you plan on making a version for XE2 ? Currently, the package returns quite a few errors when...
Dont bother...
...writing comments. I don't have time or motivation to moderate comments or answer questions and my wordpress is so broken that I can't even turn the comment option off.
If you need help, please try stackoverflow.
Sorry.
two problem:
1. not support unicode in delphi 7.
2. memory leak.
both v 4.2 and v5.0
I'm sorry, but you'll have to be a bit more specific than that.
Hi Anders, I found two problems with the component:
Use MemCheck or FastMM4 and enabled the memory leak detection, run a project with the drag and drop component, you'll see the leak report.
I capture an URL with
TURLDropTarget
. Since the Title property is of type string in Delphi 7, the unicode text will be converted to ansistring using local codepage.The leaks are known one time leaks and can safely be ignored, but I'll fix them for the next release.
You have a point about the Title property being ansi. I completely forgot that even though an URL can only be ansi, it is quite possible to have a title that requires unicode (?????????). I'll fix that too.
Hello Anders,
I have been using your component suite for a long time, to support interexchange of files within my application and to/from file system, Outlook etc.
However, after I upgraded from 4.1 to version 4.2 (and the 5.0 version), I can no longer stream Outlook msg-files. I use the
TDropComboTarget
class and stream data as follows:This works well with version 4.1, but from version 4.2 the
droppedItem.Size
(TStream
instance) reports 0, and the resulting file becomes empty, or 1kb and corrupted. I use Delphi 7 and FastMM4.Any suggestions?
Best regards
Thor Sæther
I believe I have just fixed this problem. Please try with the next V5 snapshot when it becomes available (within a week hopefully).