Ticket #253 (closed: fixed)
App crashes when user change db model
Reported by: | joeh | Owned by: | administrator |
---|---|---|---|
Priority: | normal | Milestone: | Ecopath 6: build 6.0.7 |
Component: | Ecopath | Version: | |
Severity: | crash | Keywords: | |
Cc: |
Description
How to re-produce
- Launch App, select a db model, launch NA and click Relative flow node
- Change to another db model, launch NA and click Relative flow node
Observed:
App crashes
The instance of frmHideGroups (m_HideGroups) was not set to a the latest instance so it contain the groups from the last loaded model. Also, it loaded groupnames and fleetnames as keys to the dictionary, groupnames and fleetnames can be the same so this also caused it to crash.
jb
Change History
comment:2 Changed 16 years ago by joeb
The instance of frmHideGroups (m_HideGroups) was not set to a the latest instance so it contain the groups from the last loaded model. Also, it loaded groupnames and fleetnames as keys to the dictionary, groupnames and fleetnames can be the same so this also caused it to crash.
jb
Note: See
TracTickets for help on using
tickets.
Joe's, i suspected this issue has to do with the events not getting killed or initialized properly, but found this was not the case. Somehow it's the entire plugin that needs to be properly invoked.
My first shot was to pull the initialize cNetworkAnalysis outside the plugin initialize routine because that is only called at the very start of the application.
I'm stomped with this bug. Please help cries JoeH and Sherman