I implemented the core plot in my app & it works fine. But it show the graph only first time. when i try it to see again, It shows me bad excess.
The problem is all the data in CPDStockPriceStore.m is call first time & try it see the graph again, then the breakpoint in CPDStockPriceStore.m are not come & it will direct shoe me Bad_Excess in chartviewController
the line code where i am getting bad_excess :
NSInteger valueCount = [[[CPDStockPriceStore sharedInstance] datesInMonth] count];
I think there is a problem on sharedInsance. Is it so?
I don’t know why this happen??
Update
I implemented the core plot in my app & it works fine. But it show the graph only first time. when i try it to see again, It shows me Graph with old Data.
The problem is all the data in CPDStockPriceStore.m is call first time & try it see the graph again, then the breakpoint in CPDStockPriceStore.m are not come
i have a table view & show graph with different data according to row selected. But now, The CPDStockprice file is not call more than ONE time. So, i can’t able to show graph with different data. graph shows me with same data which i selected the row first. If i select new row then it shows me graph with previous data.
I don’t know why this happen?? Help me!
You get EXC_BAD_ACCESS errors (rather than Bad_Excess, which doesn’t exist) if you try to dereference (i.e. access) a reference to an objective C object which has been deallocated.
In other words, it’s a memory management issue. The problem is that the retain count for your object has reached 0, and the runtime has deallocated the object — it’s not there any more.
Are you using ARC in your project?