celestian
December 14th, 2020, 22:44
I am experimenting with "hypertext" links. The idea is that you use a template that will display a list of text (names of records) and then highlight the ones you're moused over. If you click on said record it will open the window associated with it. This part works.
I've configured the window in my test to "close()" if the onHover(bControl) bControl = false. This works, twice... on the third time when moving the mouse off of the opened window FGC crashes. In FGU I get the following error on the first time I do move the mouse off the record window.
[12/14/2020 4:42:34 PM] s'hyperlink_Text.lua' | s'onInit'
[12/14/2020 4:42:34 PM] s'hyperlink_Text.lua' | s'onInit' | s'datasource' | { #1 = s'.abilitynoteslist' }
[12/14/2020 4:42:34 PM] s'hyperlink_Text.lua' | s'onInit' | s'activatewindow' | { #1 = s'quicknote_hover' }
[12/14/2020 4:42:34 PM] s'hyperlink_Text.lua' | s'onInit' | s'node' | databasenode = { combattracker.list.id-00004 }
[12/14/2020 4:42:46 PM] [ERROR] MOUSE UPDATE: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.HashSet`1+Enumerator[T].MoveNext () [0x00013] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at LEECPKFJIAJ.LMMHCENIOJI () [0x000cb] in <47f8d6a0706643a08ed500e0bc60c519>:0
at LEECPKFJIAJ.CLGFEEHEDAB () [0x00046] in <47f8d6a0706643a08ed500e0bc60c519>:0
at FG.FGDesktop.OPILCLOHJGM () [0x0002f] in <47f8d6a0706643a08ed500e0bc60c519>:0
at FG.FGDesktop.Update () [0x0004e] in <47f8d6a0706643a08ed500e0bc60c519>:0
The actual code from the script section in the opened record window:
function onHover(oncontrol)
if not oncontrol then
close();
end
end
How can I correct this problem?
I've configured the window in my test to "close()" if the onHover(bControl) bControl = false. This works, twice... on the third time when moving the mouse off of the opened window FGC crashes. In FGU I get the following error on the first time I do move the mouse off the record window.
[12/14/2020 4:42:34 PM] s'hyperlink_Text.lua' | s'onInit'
[12/14/2020 4:42:34 PM] s'hyperlink_Text.lua' | s'onInit' | s'datasource' | { #1 = s'.abilitynoteslist' }
[12/14/2020 4:42:34 PM] s'hyperlink_Text.lua' | s'onInit' | s'activatewindow' | { #1 = s'quicknote_hover' }
[12/14/2020 4:42:34 PM] s'hyperlink_Text.lua' | s'onInit' | s'node' | databasenode = { combattracker.list.id-00004 }
[12/14/2020 4:42:46 PM] [ERROR] MOUSE UPDATE: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.HashSet`1+Enumerator[T].MoveNext () [0x00013] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at LEECPKFJIAJ.LMMHCENIOJI () [0x000cb] in <47f8d6a0706643a08ed500e0bc60c519>:0
at LEECPKFJIAJ.CLGFEEHEDAB () [0x00046] in <47f8d6a0706643a08ed500e0bc60c519>:0
at FG.FGDesktop.OPILCLOHJGM () [0x0002f] in <47f8d6a0706643a08ed500e0bc60c519>:0
at FG.FGDesktop.Update () [0x0004e] in <47f8d6a0706643a08ed500e0bc60c519>:0
The actual code from the script section in the opened record window:
function onHover(oncontrol)
if not oncontrol then
close();
end
end
How can I correct this problem?