Page 1 of 1

Exported a .png. On dev machine all is well. On test machine

Posted: Tue Nov 11, 2008 8:55 pm
by 9336407
On dev machine all is fine.
On test machine I get an exception trying to export/save as .png file. I put the lpng.dll in the output directory. This is TeeChart 7.12 on Delphi6 testing on XP.

What else is missing?

Posted: Wed Nov 12, 2008 8:03 am
by narcis
Hi dunion,

Which is the error message you get?

Thanks in advance.

Access Violation at address 00000001. Read of address 000000

Posted: Wed Nov 12, 2008 5:09 pm
by 9336407
It looks like for some reason it's not loading the lpng.dll, which I've tried putting in the program's directory, in the windows/system32, in windows/system and in the windows directory all 'just in case'.

On my dev machine (vista64) it's in the WOW copy of the windows/system equivalent directory and all works fine. On the two test xp machines it always throws this exception.

This is teechart pro 7.07 with source. I think I have 7.12 here as well but I haven't moved the project up yet as I wasn't quite ready to retest the world,and I plan go to 8.x for Delphi 2009 when BSD for 2009 comes out anyway.

We have a similar version of this (lpng_102.dll) for use internally for other aspects of the code which I'm guessing is based on the same sources with a bug fix. But this is also circa year 2000 ish!

But in this case on the vista box I clearly see the load of the lpng.dll in the process explorer on the 'working' machine and don't on the other one.

Thanks, I figured it out.

Posted: Wed Nov 12, 2008 11:57 pm
by 9336407
Got it working. 7.12 seems OK. How much work in the tee-chart area is the port from Delphi Win32 to Delphi .NET?

(In terms of code changes).

Posted: Thu Nov 13, 2008 8:28 am
by narcis
Hi dunion,

Thanks for the information. I'm glad to hear that.
I plan go to 8.x for Delphi 2009 when BSD for 2009 comes out anyway.
CodeGear's RAD Studio 2009 (Delphi and C++ Builder for Win32) has been published for some time now. Delphi's version for .NET has been announced and will be a plugin for VS.NET called Prism.
How much work in the tee-chart area is the port from Delphi Win32 to Delphi .NET?
Porting Win32 applications to VCL.NET should be easy as syntax is the same. VCL.NET assemblies are already included with v7 and v8 releases.

For porting TeeChart to WinForms Delphi .NET applications then you'd need TeeChart for .NET v3. In that case the structure of the components is the same but with some syntactical differences.