Page 1 of 1

windows 98 & teechart 7 issue

Posted: Wed Aug 18, 2004 12:27 pm
by 9338227
We are using TeeChart 7, ReportBuilderPro 7 & Delphi 7.

When we run an app that has teechart functionality on a windows 98 pc we get the following error: "Error starting program, exe file appears to be corrupt". Immediately after, we get this message: "Windows cannot run the program because it is an invalid format"

The app runs fine on 2000/XP

If we remove all teechart functionality and recompile, the app launches ok on windows 98.

Any help much appreciated.

Posted: Thu Aug 19, 2004 12:09 pm
by Marjan
Hi.

Really strange. It's possible this is another variant of the Win9X resource problem. While searching through my database here is the only reference to Windows 98/Me specific error (my and customer comments):
As far as I found out there is a limit for the total length of all resource names in 9X/ME. (see knowledge base article below). If I delete all of your bitmaps from the EXE file with an external resource toolkit (ResHack.exe) then the file runs Okay on Win98. It appears not to be an problem with TeeChart. I guess we have been close to the limit in the the time and now with the new version of TeeChart we went over it.

Unfortunatelly we cannote divide our program into packages because it has to be one file (for distribution reasons with large amount of
workstations).

###### the ms knowledge base article I found ######

http://support.microsoft.com/support/kb ... 1/4/42.ASP