Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1319

Summary: Maps demo LoadMap() path throws error if above a certain length.
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: Examples DemosAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED WORKSFORME    
Severity: minor CC: marc
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2015-09-24 04:58:06 EDT
That's a problem with long paths we haven't found a solution for yet. Running: C:\Program Files (x86)\Steema Software\Steema TeeChart for .NET 2015 4.1.2015.08060\Examples\MapProject\bin\ExecutableDemo\TeeMaps.exe fails, yet running: C:\tmp\MapProject\bin\ExecutableDemo\TeeMaps.exe works as expected. That's the only solution we can provide for now.
Comment 1 marc meumann 2015-12-11 11:19:15 EST
The demo seems to try to change the path when not necessary.

eg. arrives at SHP. cs Loadmap as:

"D:\\Program files\\Steema Software\\Steema TeeChart for .NET 2015 4.1.2015.08060\\Examples\\MapProject\\Maps\\ne_50m_urban_areas.shp"

SHP.cs line 188 tries to modify the path:

string tmpName = replaceFilePath(FileName, ".shp");

resulting in the following tmpName:

"D:\\Program files\\Steema Software\\Steema TeeChart for .NET 2015 4.1.2015.08060\\Examples\\MapProject\\bin\\Debug\\.\\Styles\\Maps\\D:\\Program files\\Steema Software\\Steema TeeChart for .shp"

"Steema TeeChart for .shp" is an invalid name.