Page 1 of 1

Strange problem under Windows 2003

Posted: Thu Jun 21, 2007 1:43 am
by 9642458
Problem:
Applications that contain a TeeChart component crash on Windows 2003,
if the executable is renamed from the original filename that it was compiled.

Steps:
1. create a new VS 2005 project and drop a standard teechart
2. try to run it from a Windows 2003 machine (ok)
3. rename the executable and try to run it again (it crashes)

I tried this on 3 Windows 2003 machines.
Under Windows XP everything is OK.
The problem can be reproduced with at least these versions of the library:
2.0.2306.26232 and 2.0.2652.22325

If there is a workaround, please let me know. Although this does not
seem to be a major problem, the way I work requires me to be able to
rename the executables often, mostly for keeping several version of the
executable in the same directory.

Thanks a lot.

Posted: Thu Jun 21, 2007 2:02 pm
by narcis
Hi Kyriacos,

This is a licensing question. TeeChart for .NET uses the .NET licensing mechanism that compiles the license into the executable assembly once a project is built (see Tutorial 17 - Designtime, Runtime and License Requirements for more information). Renaming the file invalidates the license stamp and thus the application will fail to run.

The same would happen if you used a Windows 2003 machine for developing the application and deployed in a Windows XP machine.

Posted: Fri Jun 22, 2007 4:29 am
by 9642458
Thanks for your reply.

I tested using the Evaluation version 3.2.2669.20933 using Orcas/Win2003
and I can "deploy" and rename the .exe file, on my XP without problem,
but maybe the licensing does not apply to the Evaluation version.

Anyway thanks again for the clarification.

Posted: Fri Jun 22, 2007 7:19 am
by narcis
Hi Kyriacos,

Yes, the evaluation version is not license controlled, it just expires 40 days after its installation.