Recent

Author Topic: New Lazarus Application - WindSirf  (Read 10303 times)

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
New Lazarus Application - WindSirf
« on: August 27, 2013, 11:55:21 pm »
I have just released the first version of WindSirf. It is a GPL3 application (Win 32 only at the moment) for reading and displaying GTS-31 GPS files and tracks.

It can be downloaded from www.windsurfer.me.uk.

How can I add it to http://wiki.lazarus.freepascal.org/Projects_using_Lazarus or http://wiki.lazarus.freepascal.org/Talk:Lazarus_Application_Gallery?
« Last Edit: August 28, 2013, 12:06:44 am by Windsurfer »

jwdietrich

  • Hero Member
  • *****
  • Posts: 1274
    • formatio reticularis
Re: New Lazarus Application - WindSirf
« Reply #1 on: August 28, 2013, 01:02:35 am »
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 4.2.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis
Re: New Lazarus Application - WindSirf
« Reply #2 on: August 28, 2013, 08:28:21 am »
Nice!
Best regards!

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: New Lazarus Application - WindSirf
« Reply #3 on: August 29, 2013, 10:28:18 am »
Thanks for the encouragement.

When trying to register/ log in to the Wiki, my  user name is already in use. It is quite possible that I registered a long time ago and forgot about it. I also changed my email addresses a couple of years ago, so may not be receiving a reply for that reason. Is there a way to check whether user Windsurfer in the Wiki is me or not, and to change the email and password, if it is?

wp

  • Hero Member
  • *****
  • Posts: 13412
Re: New Lazarus Application - WindSirf
« Reply #4 on: August 29, 2013, 11:15:54 am »
When I compile your application it crashes the debugger: "Debugger error: Oops, the debugger entered the error state..." When I run your exe directly I get an error message "Eine Referenzauswertung wurde zum Server zurückgesendet" - in englisch something like "A reference analysis was sent back to the server". Googling for the message text, there is the information that it is related with UAC (User Access Control since Vista). If I turn off UAC the program runs fine. Seriously: Your program will not make many friends if your request your users to turn off security features.

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: New Lazarus Application - WindSirf
« Reply #5 on: August 29, 2013, 01:10:00 pm »
Thanks WP.

The debugger crash is new to me.

The exe error confirms what happens on my wife's PC with Windows 7, as a user with no admin permissions.

The only file that the application opens is the associated ini file for preferences. I do not want to have to register with Microsoft to have a 'recognised' application.

I will look again at the permissions set up in Inno.

If anyone has previous experience with this kind of problem I would welcome any advice.

wp

  • Hero Member
  • *****
  • Posts: 13412
Re: New Lazarus Application - WindSirf
« Reply #6 on: August 29, 2013, 01:41:13 pm »
No, the ini file in the exe folder should not be a problem as long as you have write access to the folder (don't run it from the "program files").

After I turn off the option "UI Access" in the project's application settings and rebuild the project, the errors are gone. Why did you set this option? It is off in a default LCL application project.

To the Lazarus architects: What does this option mean?

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1269
Re: New Lazarus Application - WindSirf
« Reply #7 on: August 29, 2013, 01:51:20 pm »
Good catch.  I've just checked, and I have that setting enabled in some of my projects as well.  Guess I was clicking around trying to learn stuff.

A quick search doesn't reveal what this setting is supposed to achieve.
Lazarus Trunk/FPC latest fixes on Windows 11
  I'm getting old and stale.  Slowly getting used to git, I'll get there...

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: New Lazarus Application - WindSirf
« Reply #8 on: August 29, 2013, 05:43:54 pm »
The UIAccess is a Windows-specific option, and relates to the inclusion of a manifest file with the application exe (or the manifest can be embedded in the exe, but usually it is a separate XML file).
The Windows OS (since XP) uses the information in the manifest to customise the way the process is handled when it is loaded into memory.
Most often this is used to enable your program to respond to themes, but manifests offer other possibilities, including use of the <trustInfo> tag to control the execution level, so that the program requires administrator privileges to run. XP ignores this tag, but Vista and later enforce it via the UAC.
As wp noted, Lazarus sets the UIAccess to false by default. If left like that, then Lazarus applications will run identically under XP (and earlier) and Vista and later. However, if you tick the UIAccess box your manifest will cause Windows to show the UAC before it lets the user run your program. Of course, rarely is this what any programmer wants!

wp

  • Hero Member
  • *****
  • Posts: 13412
Re: New Lazarus Application - WindSirf
« Reply #9 on: August 29, 2013, 08:32:12 pm »
I wonder if this feature ever has been tested, or I am doing something wrong. Even the standard LCL application out of the box, without any code or component added, crashes in the same way like the program of the OP (Win7 w/admin rights, Laz 1.1, fpc 2.6.2). Before reporting this as a bug: is there anything else that is to be considered when activating UI Access?
« Last Edit: August 29, 2013, 09:35:48 pm by wp »

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: New Lazarus Application - WindSirf
« Reply #10 on: August 29, 2013, 11:59:41 pm »
Thanks for finding that I had clicked UIAcess. I was trying to find out what it did when I did my final clean compile, and then forgot to change it back.

I'll recompile, retest and re-release.

[Update] I have now fixed all problems, and re-released the application. Thanks again to wp.
« Last Edit: August 30, 2013, 08:55:27 am by Windsurfer »

 

TinyPortal © 2005-2018