lyborko
lyborko

Reputation: 2619

Compatibility on WinXP and Vista

I developed an application using also third party components (developed on D7, WinXP). When I deploy this application on XP everything works fine. When I run it on Vista, the application cease to work properly:

The application runs (at last), but not in the way, like it supposed to !!!!

I would like to debug it, but how?

NOTE: When I run the same application on Win98, I get error message about invalid floating point operation...

Has anybody solved such problem?

Thanks

Upvotes: 3

Views: 524

Answers (3)

Jeroen Wiert Pluimers
Jeroen Wiert Pluimers

Reputation: 24523

The easiest solution is to make sure your Delphi version and 3rd party components are Vista compatible.

Delphi versions since 2007 are. Recent TMS, DevExpress and Raize components are.

The hard solution is to do all the changes yourself. Be prepared to modify the VCL sources from 2002, carefully modify them to bring them up to Delphi 2007 level. Then do the same for your 3rd party components.

--jeroen

Upvotes: 1

Marco van de Voort
Marco van de Voort

Reputation: 26381

I never really investigated, but I noted that in some apps that I have, in all skinned modes (XP-teletubbie, and Vista/W7 non classic) I had paint artifacts with all delphi verrsions if I put buttons and labels directly on tframes or ttabsheets.

The problems went away when I inserted a panel inbetween.

Upvotes: 0

Lasse V. Karlsen
Lasse V. Karlsen

Reputation: 391664

If Delphi 7 is compatible with Windows Vista, it only really means one or both of the following:

  1. You can run Delphi 7 on Windows Vista
  2. Delphi 7 can be used to write programs that can run on Windows Vista

It does not automatically mean that

  • All programs I create in Delphi 7 runs on Windows Vista
  • All programs I create in Delphi 7 runs properly on Windows Vista

Let me give you an analogy: That you can use a hammer to get a nail into your wall without hurting yourself does not mean that no matter what you do, you won't hurt yourself.

If your program, either in your own code, or as part of the third party components you use, use parts of Windows that has changed or possibly even been removed (although that's far less), then you need to fix your program, there's no way around it.

There's no silver bullet either, so no compiler directives or whatnot. The most I can think of is that perhaps Windows Vista has some compatibility settings for the shortcuts that might turn on some XP-compatibility layer in Vista that fixes the particular issues you have.

However, the only long-term solution is to change your program so that it is properly compatible with Windows Vista, and probably Windows 7 as well.

Since you say you're using third-party components, have you verified if the particular versions of them that you use happen to be Vista-compatible? You need to go check on the websites of the authors to find that. Perhaps it can be solved by simply upgrading those components.

However, it might also be that you need to make changes to your own code.

The best way to move forward is to install Vista and possibly Windows 7 and start debugging to try to find the underlying cause of the problems.

Note that just installing Delphi 7 on Vista and recompiling will not fix anything. The compiler does not produce a different program if you compile it on a particular Windows version. Only changes to the code will apply the necessary changes.

Upvotes: 5

Related Questions