himselfv / wakan

Japanese and Chinese learning tool with dictionary
39 stars 7 forks source link

AV on loading when some of the dicts are in demand-loading mode #125

Closed himselfv closed 11 years ago

himselfv commented 11 years ago

Original report by me.

Originally reported on Google Code with ID 125

Reported through forum. Present up to @r437, fixed @r438.

Manifestation: if you disable some of the groups for some of the dicts in Dictionary
manager, then switch to a kanji list page, enable compounds window, exit and then start
Wakan again, application crashes on load.

Explanation: for some reason or other, in this configuration dictionary manages to
be not yet demand-loaded at the time compounds list is populated. This operation creates
TDicCursor which did not, by mistake, call dic.Demand before accessing its tables.

Fix: TDicCursor (and all of its descendants) call dic.Demand where needed. (At this
time in Create, since table cursor they create there require tables to be present)

Reported by himselfv on 2013-03-13 08:47:54