Desaware Home
Products    Purchase    Publishing    Articles   Support    Company    Contact    
Support
Product FAQ
Licensing System
CC Factory
Event Log Toolkit
Gallimaufry
IniFile Tool-5M
LineGraph-5M
NT Service Toolkit
OneTime Download
SpyWorks
StateCoder
StorageTools
VBX Legacy
VersionStamper
Downloads
Documentation
Professional Services

 

bluebar
Contact Desaware and order today

bluebar
Sign up for Desaware's Newsletter for the latest news and tech tips.

NT Service Toolkit Support

Frequently Asked Questions - Background Threading

  1. I created an EXE using dwBackThread and I get a runtime error when I distribute the exe and required files and run them on other systems.
  2. We launch a background object using the dwbackthread component. When we distribute this, we get licensing errors. Where is the EnabledComponent function for the dwObjLaunch documented?
1. I created an EXE that uses the dwbackthread component. It works fine on my system, but when I distribute the EXE and required files to another system and run it, I get a licensing error:

Runtime error -2147191504 (80047530)
This component is not licensed for use in this environment

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
Copyright© 2012 Desaware, Inc. All Rights Reserved.    Privacy Policy