We consider wall-crossing phenomena associated to the counting of D2-branes attached to D4-branes wrapping lagrangian cycles in Calabi-Yau manifolds  both from M-theory and matrix model perspective Firstly  from M-theory viewpoint  we review that open BPS generating functions in various chambers are given by a restriction of the modulus square of the open topological string partition functions