Results 1 to 28 of 28

Thread: Please explain why these are two 'No No !' commands.

Hybrid View

  1. #1
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Please explain why these are two 'No No !' commands.

    The two loops look the same but have different purposes, I first check that 'Neutron' is running, and then that it's completed.
    Me no understand why you need do that especially if you're the author of all the programs involved. Would it not be simpler to have the one that's closing launch the next one in the chain in its closing events?
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  2. #2

    Thread Starter
    PowerPoster Poppa Mintin's Avatar
    Join Date
    Mar 2009
    Location
    Bottesford, North Lincolnshire, England.
    Posts
    2,500

    Re: Please explain why these are two 'No No !' commands.

    Quote Originally Posted by dunfiddlin View Post
    Me no understand why you need do that especially if you're the author of all the programs involved. Would it not be simpler to have the one that's closing launch the next one in the chain in its closing events?
    I have to admit that that hadn't occurred to me... But I'm not the author of Neutron... A very nice little utility for up-dating the on-board clock, and I think I'd still have the same problem when reporting 'File C:\Neutron\Neutron.exe not found'.
    Also I'd still have to check that Neutron had opened and closed, I can't just check that it's not running because the check might well complete Before Neutron has started... And I'd still need to use 'DoEvents' to display the message to say that the PC's internal clock had been updated.

    Neat suggestion, but I can't see it making much difference. I tried to get to grips with Multi-threading without success, I'm still trying to understand it, I'm using Nyia's explanation in the Code Bank but I've not figured out how to modify it for my own use Yet.
    I took the suggestion, in another thread, to go back to square one and start to re-learn VB from scratch and I'm doing that; except of course, as this particular thread shows, everyday life get's in the way.

    Poppa.
    Along with the sunshine there has to be a little rain sometime.

  3. #3
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Please explain why these are two 'No No !' commands.

    I don't know what version of Windows you are running, but if you have an internet connection you can have windows automatically set the time from a NTP server.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  4. #4

    Thread Starter
    PowerPoster Poppa Mintin's Avatar
    Join Date
    Mar 2009
    Location
    Bottesford, North Lincolnshire, England.
    Posts
    2,500

    Re: Please explain why these are two 'No No !' commands.

    Quote Originally Posted by dbasnett View Post
    I don't know what version of Windows you are running, but if you have an internet connection you can have windows automatically set the time from a NTP server.
    I assume you're referring to the built-in MS option, and you're quite right of course and that's fine if you're logged on at the scheduled time, I got fed-up with my clock drifting off because I was either too early or too late, and even then I found it a bit unreliable.
    This nice little utility takes a few seconds to do the job Every Time I boot-up my machine, no problems.

    Oh, and if it's of any interest, my OS is Win.7 Pro. 64Bit.

    Poppa.
    Along with the sunshine there has to be a little rain sometime.

  5. #5
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Please explain why these are two 'No No !' commands.

    You can change the interval that Windows Internet Time updates. Here is a link that shows you how

    http://www.vistax64.com/tutorials/89...-interval.html

    I think the default is once per day.

    edit: Do not set this value to low or the time server may block all of your request.
    Last edited by dbasnett; Apr 18th, 2013 at 08:46 AM.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  6. #6
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Please explain why these are two 'No No !' commands.

    Quote Originally Posted by dbasnett View Post
    You can change the interval that Windows Internet Time updates. Here is a link that shows you how

    http://www.vistax64.com/tutorials/89...-interval.html

    I think the default is once per day.

    edit: Do not set this value to low or the time server may block all of your request.
    I was going to suggest that also.
    FWIW, I have one my systems set to update every 2 hours (SpecialPollInterval = 7200 decimal) because the stupid thing gains 9 secs every hour and Windows default update is only once per week. It never got banned, although I never used Windows Time server, I changed it to one of the .gov servers.

  7. #7
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Please explain why these are two 'No No !' commands.

    Quote Originally Posted by Edgemeal View Post
    I was going to suggest that also.
    FWIW, I have one my systems set to update every 2 hours (SpecialPollInterval = 7200 decimal) because the stupid thing gains 9 secs every hour and Windows default update is only once per week. It never got banned, although I never used Windows Time server, I changed it to one of the .gov servers.
    I have mine set for four hours and use tick.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  8. #8

    Thread Starter
    PowerPoster Poppa Mintin's Avatar
    Join Date
    Mar 2009
    Location
    Bottesford, North Lincolnshire, England.
    Posts
    2,500

    Re: Please explain why these are two 'No No !' commands.

    Quote Originally Posted by dbasnett View Post
    You can change the interval that Windows Internet Time updates. Here is a link that shows you how

    http://www.vistax64.com/tutorials/89...-interval.html

    I think the default is once per day.

    edit: Do not set this value to low or the time server may block all of your request.
    See what I mean ! What a phaff ! I just run Neutron every time I boot up... Simples !
    Along with the sunshine there has to be a little rain sometime.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width