[RESOLVED] Initial open of form with particular OCX takes 30+ seconds | SLOW
Details:
* Occurs both in IDE and EXE
* Same exact form+OCX is not slow when tested on another machine
Things I've Tried:
* Uninstalled and reinstalled OCX completely
* Tried a few black magic tactics like creating a new project and adding the OCX to a form (also slow to load)
Never seen this before - any suggestions?
Re: Initial open of form with particular OCX takes 30+ seconds | SLOW
Is this an OCX you've developed, or is it a 3rd party OCX? If 3rd party, what is it?
A 30 second timeout is common for a network connection attempt, so my first suspicion with the limited information provided would be that if this is a 3rd party OCX, it is probably trying to "phone home" at load, or make some other network connection somewhere, and that connection is failing for some reason.
Re: Initial open of form with particular OCX takes 30+ seconds | SLOW
More details would be helpful, like:
1. Differences between the 2 computers. Windows versions, 32 or 64-bit OS, etc.
2. What does the OCX do?
3. What happens on a form without that OCX?
Re: Initial open of form with particular OCX takes 30+ seconds | SLOW
The OCX is TX Text Control version 14 tx4ole14.ocx and I've never had any trouble with it. I can't imagine it's phoning home, though the 30 second timeout is worth noting.
Re: Initial open of form with particular OCX takes 30+ seconds | SLOW
Both computers running Windows 10 64bit. My sense is that this is some registry issue.
Re: Initial open of form with particular OCX takes 30+ seconds | SLOW
Quote:
Originally Posted by
zlander
Both computers running Windows 10 64bit. My sense is that this is some registry issue.
Control's OCX file might by code-signed by vendor. Then on first load Windows would be checking for certificate revocation by phoning CRL server that is provided in the code-signing certificate. The server might be unreachable exactly this day, exactly from your local ISP's network.
cheers,
</wqw>
Re: Initial open of form with particular OCX takes 30+ seconds | SLOW
Quote:
Originally Posted by
zlander
The OCX is TX Text Control version 14 tx4ole14.ocx and I've never had any trouble with it. I can't imagine it's phoning home, though the 30 second timeout is worth noting.
It's probably related with the printer driver. TX has an option to format the text to the printer or the screen. Check it it makes any difference
Re: Initial open of form with particular OCX takes 30+ seconds | SLOW
Quote:
Originally Posted by
Carlos Rocha
It's probably related with the printer driver. TX has an option to format the text to the printer or the screen. Check it it makes any difference
And we have a winner! I removed the active printer and the problem vanished. Thanks Much!