The new RAM pop-up has the ability to edit memory values.
The data is displayed in a wxGrid.
The "data structure" created to hold the data for wxGrid is a class named virtualGrid. When a value is edited by a user, virtualGrid::SetValue is called. This then forwards the edit down to the core.
There are six unused variables named numCols, addressSize, whiteCell, redCell, greenCell, randomName1 and randomName2 that are member variables of virtualGrid.
If these variables are removed, then the program will crash in GUICircuit::sendMessageToCore when the method tries to access the member veriable waitToSendMessage.
This only happens when the varibles are not declared, and the user tries to make an edit to the RAM contents.
I am guessing this is a memory bug due to the fact that virtualGrid has nothing to do with GUICircuit.
The source of the memory error is unknown. It could be part of wxWidgets, the new Z80 code or a manifestation of an old CEDAR logic bug.
Log in to post a comment.