Ticket #44 (closed: fixed)

Opened 17 years ago

Last modified 17 years ago

GUI crashes when loading a second model with a larger number of groups

Reported by: joeb Owned by: administrator
Priority: normal Milestone: Ecopath 6: build 6.0.7
Component: Overall GUI Version:
Severity: crash Keywords:
Cc:

Description

If the user loads a model with a small number of groups eg. MSY Baltic and runs Ecosim. Then loads a model with a larger number of groups eg. MSY Geogia Strait and runs Ecosim the Interface with throw an unhandled array out of bounds error in RunEcosim?.drawseries1(). It can also throw other errors for other routines.

It appears that the interface is not redimensioning its data in responce to a model load once it has been loaded.

Change History

comment:1 Changed 17 years ago by user8

The DrawSeries?..all Biomass plots have been reimplemented..Old code has been removed..

I looked into Running the second model issue: here is updated info:

Second time: Generates exception in cMessageHandler:

Try

m_DelegateNotifier(message)

Catch ex As Exception

'Error thrown in the handler in the interface that was not handled
'we have no idea if this message got handled or not
cLog.Write(Me.ToString? & .SendMessage(cMessage) Error thrown by interface delegate that was not handled in the interface.)
Debug.Assert(False, Me.ToString? & .SendMessage(cMessage) Error thrown by the interface message handler that was not handled in the interface.)
Return False

End Try

So JoeB or Jeroen, could you look into this?

comment:2 Changed 17 years ago by user8

The DrawSeries?..all Biomass plots have been reimplemented..Old code has been removed..

I looked into Running the second model issue: here is updated info:

Second time: Generates exception in cMessageHandler:

Try

m_DelegateNotifier(message)

Catch ex As Exception

'Error thrown in the handler in the interface that was not handled
'we have no idea if this message got handled or not
cLog.Write(Me.ToString? & .SendMessage(cMessage) Error thrown by interface delegate that was not handled in the interface.)
Debug.Assert(False, Me.ToString? & .SendMessage(cMessage) Error thrown by the interface message handler that was not handled in the interface.)
Return False

End Try

So JoeB or Jeroen, could you look into this?

comment:3 Changed 17 years ago by jeroens

Mismanagement of GroupDisplay? flags caused the crash.

Note: See TracTickets for help on using tickets.