[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Kchart
From:       Laurent montel <montell () club-internet ! fr>
Date:       2000-01-01 10:50:56
[Download RAW message or body]

Hello

I worked on kchart and I found why kchart crash when we want to
choose COMBO_ chart.
Because float *uvol is not init.
So when you do :
for(int j=0; j<num_points; ++j )
      if( uvol[j] != GDC_NOVALUE ) {
         vhighest = MAX( uvol[j], vhighest );
         vlowest  = MIN( uvol[j], vlowest );
 .....
}
in kchartEngine_ComputerSize.cc .

=>kchart crash.

But if I write :
   uvol=new float[num_points];
it doesn't crash but it doesn't work. Because uvol is creat but not
init .

I looked at in gdchart directory they used
va_start( ap, num_sets );
    for( i=0; i<num_sets; ++i )
 uvals[i] = va_arg(ap, float*);
    if( do_vol )
 uvol = va_arg(ap, float*);
    va_end(ap);

But it used when you have multiple parameters in a function
it doesn't work as in kchartEngine_ComputerSize.cc

So I don't know how to init uvol.


So If you have an idea ....

Bye

Happy new year 2000.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic