* Mike's Map Life Facts
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Mike's Map Life Facts
I downloaded and tried this, but when it finished geo-coding all my places it seemed to lock up and nothing happened for 10 minutes, I could not cancel it so I had to kill the FH Beta to get out.
Can you look at providing a cancel button and give me a hint as to why it might have locked up.
ID:5580
Can you look at providing a cancel button and give me a hint as to why it might have locked up.
ID:5580
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- tatewise
- Megastar
- Posts: 27080
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Mike's Map Life Facts
Sorry - that sort of lock up sometimes happens on my various PC too, but usually only in debug mode, and mostly on the least powerful.
I think it is something to do with the way I use a GUI timer to implement a Sleep function, and appears to be internal to the LUA.
That is why an FH API Sleep function would be useful because LUA does not have one.
I will look at keeping the Close Plugin button active, and some adjustments to the way the GUI timer is used.
Can you try again and see if it always happens, or only sometimes.
In particular try the Sample project.
I think it is something to do with the way I use a GUI timer to implement a Sleep function, and appears to be internal to the LUA.
That is why an FH API Sleep function would be useful because LUA does not have one.
I will look at keeping the Close Plugin button active, and some adjustments to the way the GUI timer is used.
Can you try again and see if it always happens, or only sometimes.
In particular try the Sample project.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Mike's Map Life Facts
It was probably in debug mode, I'll try it again, running it direct. Might it be worth adding a progress window with a cancel? I tried my file as it has many more places (around 600 to look up)
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- tatewise
- Megastar
- Posts: 27080
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Mike's Map Life Facts
I have run it successfully on my Gedcom with over 200 Places and over 500 Addresses.
To implement the Sleep(intWait) function I use the following modal GUI code:
This is used in loop that checks if a file exists written by the HTA:
Because the GUI is modal I am not sure that it can be cancelled externally.
There is a note in the IUP Documentation under Events > Functins > IupMainLoop that says:
If IupMainLoop is called without any visible dialogs and no active timers, the application will hang and will not be possible to close the main loop. The process will have to be interrupted by the system.
After timWait.run = 'NO' there is no active timer and the dialog is hidden, so could that cause the hang?
I am experimenting with a secondary backup timer, and with an Emergency Exit button within this GUI.
The secondary timer would avoid the no active timer problem above.
To implement the Sleep(intWait) function I use the following modal GUI code:
Code: Select all
function GUI_Wait(intWait)
local timWait = iup.timer{ time=intWait, run='YES' }
local dialogWait = iup.dialog{ resize='NO', menubox='NO', maxbox='NO', minbox='NO' }
function timWait:action_cb()
timWait.run = 'NO'
return iup.CLOSE
end
dialogWait:popup(100,100)
dialogWait:hide()
if (iup.MainLoopLevel()==0) then iup.MainLoop() end
end -- function GUI_Wait
Code: Select all
repeat
GUI_Wait(intWait)
intCheck = intCheck + 1
until FlgFileExists(StrFileNameANS) or intCheck > intMax
There is a note in the IUP Documentation under Events > Functins > IupMainLoop that says:
If IupMainLoop is called without any visible dialogs and no active timers, the application will hang and will not be possible to close the main loop. The process will have to be interrupted by the system.
After timWait.run = 'NO' there is no active timer and the dialog is hidden, so could that cause the hang?
I am experimenting with a secondary backup timer, and with an Emergency Exit button within this GUI.
The secondary timer would avoid the no active timer problem above.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Mike's Map Life Facts
I think a fhSleep function might be coming so it might be worth waiting for the next beta, if that's the issue.
I forgot to say your version looks pretty good, personally I don't like the interface font in bold, I would have preferred to keep the standard font from my windows settings, but that's just my preference.
Might it be worth adding panels with titles around the three different areas then you can use the standard panel titles. and it will make it easier to work out the different areas on the window.
I forgot to say your version looks pretty good, personally I don't like the interface font in bold, I would have preferred to keep the standard font from my windows settings, but that's just my preference.
Might it be worth adding panels with titles around the three different areas then you can use the standard panel titles. and it will make it easier to work out the different areas on the window.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- tatewise
- Megastar
- Posts: 27080
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Mike's Map Life Facts
fhSleep() would be great, and probably solves the hangs!
To change the GUI Font Style simply edit the first few lines of the Plugin Script and remove Bold from the four StrFont10 thru StrFont14 attributes.
I might add a style choice to the Default Settings.
I will look at adding panels as you suggest.
Does the Plugin usually run OK when not in Debug mode?
I don't know if it helps but here are some FH hang details, in which some occurred more than once:
To change the GUI Font Style simply edit the first few lines of the Plugin Script and remove Bold from the four StrFont10 thru StrFont14 attributes.
I might add a style choice to the Default Settings.
I will look at adding panels as you suggest.
Does the Plugin usually run OK when not in Debug mode?
I don't know if it helps but here are some FH hang details, in which some occurred more than once:
Code: Select all
Family Historian is not responding
Description:
A problem caused this program to stop interacting with Windows.
Problem signature:
Problem Event Name: AppHangB1
Application Name: fh5beta.exe
Application Version: 5.0.0.2
Application Timestamp: 4e1f4eda
Hang Signature: 27be
Hang Type: 6144
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 2057
Additional Hang Signature 1: 27be6880949a6e6f92f61c1bed2db9f5
Additional Hang Signature 2: 156e
Additional Hang Signature 3: 156e71d864b3fda2fface94237403cdf
Additional Hang Signature 4: 27be
Additional Hang Signature 5: 27be6880949a6e6f92f61c1bed2db9f5
Additional Hang Signature 6: 156e
Additional Hang Signature 7: 156e71d864b3fda2fface94237403cdf
Description:
A problem caused this program to stop interacting with Windows. (this one 3 times)
Problem signature:
Problem Event Name: AppHangB1
Application Name: fh5beta.exe
Application Version: 5.0.0.2
Application Timestamp: 4e1f4eda
Hang Signature: 088c
Hang Type: 6144
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 2057
Additional Hang Signature 1: 088c5f4eaa830d3b7de164efae4d66cf
Additional Hang Signature 2: 8d37
Additional Hang Signature 3: 8d37f1829a7ca119e966aedc84dadd85
Additional Hang Signature 4: 088c
Additional Hang Signature 5: 088c5f4eaa830d3b7de164efae4d66cf
Additional Hang Signature 6: 8d37
Additional Hang Signature 7: 8d37f1829a7ca119e966aedc84dadd85
Description:
A problem caused this program to stop interacting with Windows. (this one twice)
Problem signature:
Problem Event Name: AppHangB1
Application Name: fh5beta.exe
Application Version: 5.0.0.2
Application Timestamp: 4e1f4eda
Hang Signature: bb31
Hang Type: 6144
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 2057
Additional Hang Signature 1: bb31d44b0bf4ff1ff40c28e2d7e2c246
Additional Hang Signature 2: b11f
Additional Hang Signature 3: b11fb9ff51f1b57738089d44b949099d
Additional Hang Signature 4: bb31
Additional Hang Signature 5: bb31d44b0bf4ff1ff40c28e2d7e2c246
Additional Hang Signature 6: b11f
Additional Hang Signature 7: b11fb9ff51f1b57738089d44b949099d
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Mike's Map Life Facts
Fonts: I ended up removing Ariel and Bold so I got my normal windows font (which is not Ariel) and for me the window looked better, but personally I don't like excessive use of bold or being forced to use a specific font.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- tatewise
- Megastar
- Posts: 27080
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Mike's Map Life Facts
In the next release I have added an option to choose the user interface font style, and initially defaulted to the Windows current font.
I plan to retrospectively add this and other newly discovered techniques to my other plugins in due course.
I plan to retrospectively add this and other newly discovered techniques to my other plugins in due course.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- tatewise
- Megastar
- Posts: 27080
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Mike's Map Life Facts
I believe the lockup problem is now fixed by using fhSleep().
I have added a Font selection option.
I have added a Help & Advice feature using the Knowledge Base as you suggested for my Change Any Fact Tag plugin.
Comments welcome.
I have added a Font selection option.
I have added a Help & Advice feature using the Knowledge Base as you suggested for my Change Any Fact Tag plugin.
Comments welcome.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry