Results 1 to 8 of 8

Thread: Testing my ActiveX Dll???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 1999
    Location
    Atlanta
    Posts
    145

    Testing my ActiveX Dll???

    I have created a DLL and I'm in the process of testing it. I want to call it from an ASP page. The Problem is when I make changes and recompile my DLL I get errors and have to reboot. Can anyone let me know of a good way to test my DLL or to remove it my machine and recreate it between test. Thanks

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    What version of Windows is IIS on? If it is Win2000 then you can restart the service from within IIS by right clicking the server name in the IIS and select restart.

    If you have anything other then Win2000, then have to restart in order for you to release the DLL.

  3. #3
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Also, if you install your dll into MTS, you can shut it down from the MTS management console.

    André

  4. #4
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Thumbs up

    Are u setting dll instance to nothing at the end of your asp page?
    System Programmer

  5. #5
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Setting the object to nothing does not help. Dll's are loaded into DllHost.exe, once in there they must be released by either restarting the IIS service if in win2000, or by shutting the object down trhough MTS or COM+

    Cheers

    André

  6. #6
    New Member
    Join Date
    Feb 2001
    Posts
    15

    Cool Searge is Wrong

    If you have Windows NT run from the command prompt the following: -

    net stop iisadmin /y

    This will stop IIS and remove the DLL from memory

    Now re-compile the DLL

    Then run: -

    net start w3svc

    Bob's your Uncle - all sorted - no re-boot required
    brock loves to code

  7. #7
    New Member
    Join Date
    Aug 2001
    Location
    Amman-jordan
    Posts
    10

    You do not need to compile

    Many people think that you have to fully generate the ddl file and register it for testing.

    Instead do the following:

    start your VB and create the DLL.
    Save it.
    RUN your Dll and when prompted of what to do select the last option(Starrt Explorer) and in the text box associated with the option write the server URL for your testing file i.e. 127.0.0.1/testpage.asp

    hope this will help..
    Fadi

  8. #8
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Yes this is true, remember though to compile the DLL with binary compatibility!

    Cheers

    André

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width