Studies of internal disruptions and m=1 oscillations in tokamak discharges with soft--X-ray techniques