1. if it seems from the complaint that both cases have arised in the same transaction (same cause of action) then you should quash the criminal proceeding i.e. dv case from the high court u/s 498A crpc and file that judgment before the family court under section 151 cpc for dismissal of plaint.
2. when cause of action is frustrated in one case then it also affect the other case based upon same cause of action.