ap_Graphics Issue

Hello,


Trailing TMS Scripter

I need to access Graphics in my scripts but am unable to do so. If I add ap_graphics to my main projects uses clause I receive a compile error "F2051 Unit ap_Graphics was compiled with a different version Vcl.Graphics.clSkyBlue". Any assistance much appreciated.

Thank you.

Sorry, forgot to mention Delphi XE2.

This is a typical issue with duplicated files. Can you please check your hard disk for duplicated copies of ap_Graphics.dcu and/or tmsscripter*.dcp files?

That's what I immediately thought too. However an entire HDD search only found ap_Graphics.dcu twice (32bit & 64bit folders). I renamed the dcu in 64bit folder and got the same compile error. Put 64bit version back and renamed the 32bit version and then it couldn't find the dcu file. So it is definately wanting to use the correct .dcu.


I'm a little confused as to why it is happening. I do have the registered component pack installed but it doesn't use ap_Graphics does it? As I couldn't see the dcu anywhere else.

Thanks,
Mick.

what is the date of ap_Graphics.dcu? Is it according to the last time you built/installed scripter?

Do you by chance have duplicated copies of Graphics.dcu or vcl.dcp files?

Date for ap_Graphics.dcu is today's date which is the same time I reinstalled TMS Scripter. It uses vcl.graphics.dcu located in the folder C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\lib\win32\release


Thank you.

I'm running out of ideas. That is the exact error message again (as the error you posted doesn't seem to be the exact one)?