There is nothing wrong with your television set. Do not attempt to adjust the picture.
My name is Anders Melander.
I was born in 1964 and I live (last time I checked my pulse) in the small town Rode in Denmark with my wife Lone, our two kids Elisabeth, born 1999, and Silke, born 2001, the dog Bozo, a few ducks, 10 chickens, 20-30 fish, 40-50 mice and a partridge in a pear tree. Our house is a large thatched cottage dating from sometime in the 1700s.
If you are looking for information on the Melander family you’re welcome to browse my Genealogy pages.
I’ve been working as a software developer since the 80s. At present I’m the senior software architect and a partner in a small and very anonymous company.
My weapon of choice is definitely Delphi from CodeGear. I’m fluent in a lot of other languages, but Delphi is the most fun to use.
If you should get the urge to mail me about any of the freeware software projects I’ve published in the past, I must warn you that my Bayesian spam filter has received special secret ninja training in detecting anything that remotely resembles unpaid work. You are always welcome to leave a comment though.
I’m afraid the site is a bit of a mess at the moment. I’m in the process of transferring content from my old site, which was designed and maintained in notepad, and it’s a lot of work.
MelanderBlog is powered by WordPress with the assistance of far too many heavily customized plugins. These are just some of them:
Interesting Delphi poll results.
There must be a lot of people using Delphi to get a total of 128 %.
Have found your Drag and Drop Component to be very useful.
It's possible to select more than one choice in the current poll; For example I'm personally using D5, D7 and D2007.
Hey.. Thanks for all the great work.
I’ve been working with Delphi forever and it seems and your name has been there for as long as I can remember.
I would like to thank you for all the years of giving you have done for all the devlopers out there.
I’m sure your rewards have come though the thanks and appreciation you have received. However, know this, there must be a 1000 times as many that have been helped by you that never say anything.
Again, thanks.. keep up the great work and all for the right reasons.
-George
Google'd my last name of "Melander" and noticed your site. Found our name to be rare. More so in America. Hope all is well. Oh, my first name is Roy.
Is the source code to PrintKey 2000 still available?
I have a copy of PrintKey v3.03 and in the about box, it states that I could come to this site to get a copy of the source code for free. However, I can't seem to find it. Is the code and offer still applicable?
I'm not the author of PrintKey.
I've never used PrintKey but AFAIR PrintKey uses TGIFImage and has a comment in the about box about the source code being available from me. However it's not the PrintKey source that is available. It's the TGIFImage source.
I downloaded the DragDrop suite last Friday, and noticed your site was hacked at that time. Can you guarantee no code has been inserted into the source code by the intruders?
None of the downloads were infected.
The attack injected an obfuscated javascript program into all JS files and certain PHP files. "Luckily" the attack was so aggressive that it messed with too many files and broke WordPress so badly that I don't think it managed to propagate away from my sites.
The whole mess started when I got hit by a drive-by attack from an otherwise legitimate web-site [read: they got hit too]. The web-site downloaded a trojan to my computer, installed a root-kit, grabbed all my FTP passwords from FileZilla and began propagating to all the sites I have write-access to. Although my virus scanner didn't catch the initial infection, it did catch and wipe the secondary infections when the trojan attempted to infect various Windows system files.
I ejected the trojan and cleaned up the web sites with the help of the SysInternals AutoRuns and Process Explorer tools and the Unmask Parasites web site.
Seems like a serious trojan. I'm glad you've been able to get rid of it!
Hi, i've used your tutorial and made png splash. But i have problem :/ I have png also on main form and its black, also component like checkbox is black and when i try to change caption in main menu its disapear for few sec (like refresh or sth). How can i fix this?
Is it possible to use your component to Drag a PDF from an outlook attachment drop it on a delphi form, save the pdf to a directory so I can load it in Adobe's activex control on the delphi form
Thanks
John
Yes.
Hi,
I tried with the code below but
1) get a slightly smaller filed compared to the save as from the email
2) Get a File is damaged and could not be repaired when trying to open the pdf (version 9)
TIA
John
There's a bug in your code.
You need to dereference the pointer passed to
Stream.Read. Otherwise you will just overwrite the pointer and the memory following it.Hi,
Thanks for your wonderful component and examples. It has far exceeded anything I hoped to accomplish. I initially downloaded an older version which did not have the advanced outlook features.
Thanks again,
John
If I change from p to p^ compiler raises Incompatible types: 'Pointer' and 'Char'
My bad. I forgot that Stream is an
IStream, not aTStream.Instead of reading the stream into a buffer and then write that buffer to disk, I suggest you just copy the
IStreamdirectly to aTFileStream:IStreamas you do now.TFileStreamTFileStreamin aTStreamAdapter.IStreamto theTStreamAdapterwithIStream.CopyTo().IStreamhas now been written to a file.Better?
Hello,
I use your great DragDrop component.
When I do a drag/drop action to copy files in my application, FastMemory reports a memory leak in the following code:
[AxCtrls][AxCtrls][AxCtrls.TOleStream.Create][1870][DragDropFormats.pas][DragDropFormats][DragDropFormats.TCustomSimpleClipboardFormat.DoSetData][1259]
[DragDropFormats.pas][DragDropFormats][DragDropFormats.TCustomSimpleClipboardFormat.DoSetData][1278]
[DragDrop.pas][DragDrop][DragDrop.TClipboardFormat.SetDataToMedium][1141]
[DragDrop.pas][DragDrop][DragDrop.TClipboardFormat.SetData][1148]
[DragDropFormats.pas][DragDropFormats][DragDropFormats.TCustomSimpleClipboardFormat.Create][996]
[DropTarget.pas][DropTarget][DropTarget.TCustomDropTarget.SetPerformedDropEffect][1474]
[DropTarget.pas][DropTarget][DropTarget.TCustomDropTarget.DoDrop][863]
It would be great if you could take a look at it.
Bye,
Jürgen
In this particular case the TOleStream is passed on to the drop source, so it's the responsibility of the drop source to free it.
If there's a leak it is in "the other" application. Nothing I can do about that.
Hello,
in the unit DragDropFormats you recommend to comment out the two lines of code which create a TOLEStream and a TFixedStreamAdapter.
With these changes I do not have any memory leaks.
Thanks,
Jürgen
You probably didn't have a memory leak in the first place. Most leak detection tools are unable to track resource allocations across process boundaries and thus gives false positives for resources that are allocated in one process and then passed via COM to another process and released there.
The code you disabled is needed to make clipboard operations work properly. As the comment says, if this isn't important to you then it can be disabled, but you are really not solving the actual problem by disabling the code.
What application are you dropping from?
Hello Anders,
I recently installed your drag and drop Suite v5.2 on my new ASUS laptop, Windows7 64bits, Delphi7, but unfortunately it does not work. The dragged opbjects are not accepted in your demo programs as provided in the ZIP file of the Suite. Also, (for example) selected dragged image(s) are grapically not shown together with the drag cursor. Am I overseeing something?
Bye,
Peter Sebastian