ShinobiChart crashing issue


#1

Hi,

Background

I’m creating an iOS app which uses Shinobi Charts(SChart), when a row/cell in a Shinbo Grid is selected a SChart is created in a UIView. This calls the code to init the chart and set the datasource and delegate, which is in its own class.

For example,

    • (void)shinobiGrid:(ShinobiGrid *)grid didSelectCellAtCoord
  1. drawChart

2.1) init chart

2.2) set datasource and delegate(separate class)

2.3) add chart to view

Problem

My app will crash after I’ve selected a different row/cell a few times, this is error I get, [‘ChartDatasourceClassName’ respondsToSelector:]: message sent to deallocated instance 0x1e5ce580

Can anyone help me with this problem? If you need more information please let me know.

Thank you for your time and help.

Regards

Jing Jing Tao


#2

Hi - It sounds to me as though your datasource is being deallocated. Are you keeping a strong reference to your datasource?


#3

Hi Jan,

Yes, I am keeping a strong reference to the datasource class.

Regards

Jing Jing Tao