XP Manifest & Tee Chart
It’s been several years since I had this stupid bug. I made a program using Delphi 6 that uses TeeChart. The program works fine.
Several months later, I changed platform to using Delphi 7. I’ve installed TQReport and TQRChart (TeeChart) into Delphi 7 (Since QReport is no longer installed by default in Delphi 7). The program works fine.
Then I decided to add some graphical theme into the software. It works fine too, unless my client finally notices a bug. The program will immediately generate a Stack Overflow when my program prints more than one graphical report.
The funny thing is, it fail to work on most computer (including my PC!), but one; the one that has the Windows Classic theme.
My first guess would be my graphical enhancement. But after I double check, I am using nothing but merely TImage all around the place. That bug must come from somewhere else.
Months go by, and I still couldn’t found the remedy for that problem, until I accidentally found an interesting article in the internet: XPManifest and TeeChart will generate a Stack Overflow.
Surprised, I checked my program again. Yes, it definitely uses the advantage of XPManifest. Guess what, after removing the manifest, I am free of that stupid bug. (Along with the good XP controls…, sigh)
Then again, I still don’t understand why that Stack Overflow occurs when XPManifest and TeeChart goes together… Oh well


