Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 903203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:50:19+00:00 2026-05-15T15:50:19+00:00

After intensive searching why certain workstations wouldn’t perform a certain action when just being

  • 0

After intensive searching why certain workstations wouldn’t perform a certain action when just being started up in the morning (…) I’ve discovered that GetPrivateProfileInt just returns the default value and doesn’t bother to set GetLastError to something non-zero when the network-subsystem hasn’t activated yet (e.g. because the DHCP client is still trying to get hold of an IP address to use.)

Does this sound familiar to someone? Does anybody happen to know what I should/could do about it?

For now I’ll correct by using an alternate default value, and stalling a bit while I get my default value.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:50:20+00:00Added an answer on May 15, 2026 at 3:50 pm

    GetPrivateProfileInt() is one of those innocent looking Windows API functions that has a ton of code behind it. There’s a mass of appcompat code, designed to allow Win3 programs to run on modern versions of Windows. One of the side-effects is that it is incredibly slow, it took about 50 msec the last time I profiled it.

    Looks like you found a flaw in it. For all I know, it might actually be designed appcompat behavior. Emulating the way this API worked 18 years ago. I have no clue of course if that’s accurate.

    The very best thing you can do is stop using it. A possible workaround is to open the file first so that your program blocks until the service is up and running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an application that is primarily performance intensive. After writing a quick
After some testing with a completed product, I have just found that the hardware
After following the RoR getting started tutorial, I added another model as: $ rails
I need to start a CPU-intensive system process under low priority so that it
I read somewhere that setInterval is CPU intensive. I created a script that uses
I have a ruby script that performs a lot of memory intensive work. The
I've started using the task queue to schedule a time-intensive task to run in
I have an application that is database intensive. Most of the applications methods are
I'm writing a graphics application that's maths and geometry intensive. Frequently, I find that
Is using 50 if-else statements too resource-intensive for one action? I'm doing something like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.