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 - Maps demo LoadMap() path throws error if above a certain length.
Summary: Maps demo LoadMap() path throws error if above a certain length.
Status: RESOLVED WORKSFORME
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Examples Demos (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- minor
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-24 04:58 EDT by christopher ireland
Modified: 2016-05-03 05:37 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.