Backingup dataset data when exception occurs Smart client

Jul 18, 2008 at 7:56 AM
Hi Friends,

I have below requirements in my Smart client application developed using CAB-SCSF.

1. Data access between my smart part and database is done thru "DATASET"
2. When my application crashes (abnormally), i need to backup the current smartpart data (Dataset which is currently loaded) in an XML file.
3. When i run the application next time, i need to load the last active smartpart (smartpart / view which was active before application crashed) along with the data which i backed up in an xml file.

My question is:
1. How do we handle the application crash which happens abnormally? Can we handle in shellApplication.cs file?
2. How to get the last active dataset and the view which was loaded before the crash?

Any help on this is very much helpful.

Thanks a lot,