Monday, December 31, 2007

Strange Delphi Bug – again

It really seems that somebody at Borland/CodeGear hates me. Why? Because with every new release of Delphi I run into a very strange bug. This time: The type library editor on Vista “can’t rename XXX.$$$ to XXX.tlb”.

The first message of this bug will be “Can’t copy XXX.tlb to __history\XXX.~1~” (or something like that). Okay, no problem simply switching off backup copies (Preferences – Editor) and you are done. Not really, since now Delphi will throw a new error “Can’t rename XXX.$$$ to XXX.tlb”. Checking with Process Monitor reveals that Delphi itself (BDS.exe) is locking the TLB file. Nice, isn’t it?

Looking a little bit around and it seems this bug only appear when Delphi is installed on Vista AND the type library you are editing has a reference to OLE Automation v1.0 (stdole32.tlb). If the type library has a reference to OLE Automation v2.0 (stdole2.tlb) this bug won’t show up. The solution I found was to open the project on Windows XP, exchange the reference and reopen the project on Vista. But I don’t have an XP box anymore so the solution was a little bit strange:

Exchange the reference of OLE Automation v1.0 to v2.0 inside the Type Library Editor (Tab “Uses”), then try to compile the project. This will fail because of the “Can’t rename…” error. Anyway, copy the [FILENAME].$$$ from the project folder to a new folder while Delphi is running. Once this is done, close BDS (no, you can’t save the project because of the error). Now delete the old TLB file and rename [FILENAME].$$$ to [FILENAME].TLB and copy it to the project folder.

Start Delphi again, open the project and check if the “Uses” tab now says you are using OLE Automation Version 2.0. If so, everything should be back to normal again.

Thursday, December 27, 2007

I just want a !"§$% iPod bag!

Okay, I finally managed it to buy me a new iPod Classic 80GB since my 2nd generation iPod seems to have some gremlins.

As I know that Apple does no longer deliver a bag, I through it should be easy to get a bag from a 3rd party. Boy was I wrong.

You basically get everything, silicon slip-in cases, sports armband cases, charge cases, kitty cat cases.... But I just wanted a simple case. Means: Put the iPod in for transportation and put it out if you plan to use it or not.

Believe me or not, the only simple case I found was one from Marware: Sportsuit Sleeve for iPod classic and video.

Sometimes the simple things are just so hard to get.

Tuesday, December 11, 2007

Hostile Ad

Okay, I don't like Macs, I don't have one and I think Vista is better than MacOS X.

But this add is just so funny...