You mentioned that you kick off the code some time after the windows
load function. Does that mean that the code is still run at load time?
Have you tried loading it by user action, like with a button, to see if
the timer is still necessary?
The problem could be that it's not possible to load libraries during the
load process, so there's an artificial delay being introduced. In that
case I think the better solution would be to set a timeout for all of
your startup code, which can also help with overall startup performance
(
https://blog.mozilla.org/addons/2010/06/14/improve-extension-startup-performance/).
As for preloading the DLL, one way to do this is with a binary XPCOM
component, but I would recommend against it. ctypes were created
precisely as a better alternative to binary XPCOM.
Regards,
Jorge
On 4/25/13 11:56 AM,
gigasof...@gmail.com wrote:
> Hi All,
>
> We have run into a few problems with js-ctypes and loading of a DLL. First off we have verified that the DLL works and all methods are called properly. But the problem appears to be the load time of the library.
>
> On a side note� this is a pure �C� DLL/LIB that will be compiled on the Mac/Linux. Very fast and light weight. (no MFC or any other M$ bloat)