|Products Purchase Publishing Articles Support Company Contact|
support > Product FAQ > NT Service Toolkit > Background Threading
Event Log Toolkit
NT Service Toolkit
NT Service Toolkit Support
Frequently Asked Questions - Background Threading
Runtime error -2147191504 (80047530)
There was a bug with the way the dwbackthread component was licensed for EXEs. Download the latest dwbackthread component by running the Update utility or contact Desaware if you have a firewall or proxy server that may prevent the Update utility from working
2. We launch a background object using the dwbackthread component. When we distribute this, we get errors attempting to launch the background object. Where is the EnabledComponent function for the dwObjLaunch documented?
The NT Service Toolkit documentation was missing a section regarding the EnabledComponent function. The EnableComponent method is used for licensing purposes. It is mainly used to license our background thread component for use within other components that can be placed in a "design-time" enviroment. The license string is generated by using our "NT Service Toolkit ActiveX re-distributable license" utility (dwlicgen6.exe). But, it is not necessary to do this within your Service or other compiled executable.
The samples in the dwbackthread sub directory demonstrate how to call the EnableComponent function to license the component even though these samples would not require it.
If you would need to create a "standalone" ActiveX component that can create background threads and distribute that for developers, then you would need to license the component. You would do this by entering the exact name of your component's file name, the license generator will return a string which you would then pass to the EnableComponent method call. That will license the dwbkthrd.dll component to run in "design" mode as long as your component's file name is also loaded.
|Products Purchase Articles Support Company Contact