- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I've made an app for revit that exports documents from a project, the issue im having is that in the app there are several WPF comboboxes etc that grabs information from the active project, so when i open a new project or switch window to a different one the app crashes as view ids, element ids and so on no longer matches.
My work around is to register the DocumentOpened event and activeview change event and close the app when it notices that the active project has changed. This works fine and its not an user issue as the app is fairly lightweight and its quick to get started again.
But when i open upp the app a second time, it has saved the previous pages and windows in what im guessing is the memory, some form of cache or whatever, which again makes the app crash.
Is there any way of clearing this memory? or forcing the app to start "fresh" at each launch?
the .close() command of the window doesnt seem to be enough.
any help is appreciated.
Solved! Go to Solution.