ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  setLinearScale on PolarChart is generating endless loop
Posted by Lars on Sep-02-2020 18:30
Im trying to set the following in the code. The sample reports are running perfect, but as soon I integrate the code into my own perl coding, the makeChart call is never coming back.

I found out that the following call is resposnible for the behavior.
# Set angular axis as 0 - 360, with a spoke every 30 units
$c->angularAxis()->setLinearScale(0, 360, 30);

So I was thinking to be clever and copy the sample code from the page into a SUB function and call it. The code was running in an seperate PL script, but surprise it is not executed in the SUB properly. I have the same behavior, the makeChart is hanging and consuming only CPU.

Any ideas .... Thx, Lars

  Re: setLinearScale on PolarChart is generating endless loop
Posted by Lars on Sep-02-2020 19:34
I found the solution, it looks like that the order of different modules loaded at the beginning we bringing the confusion.

# In the sample code, the ChartDirector for Perl module is assumed to be in "../lib"
use File::Basename;
use DateTime::Format::Strptime;
use Storable;
use lib 'c:perl64libChartDirector';  # ChartDirector library
use perlchartdir;
use File::Copy;
use Threads;
use Cwd;

NOW WORKING with this order
use File::Basename;
use lib 'c:perl64libChartDirector';  # ChartDirector library
use perlchartdir;
use DateTime::Format::Strptime;
use Cwd;