Results 1 to 6 of 6

Thread: Reference an AxtiveX dll project in another project

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    39

    Resolved Reference an AxtiveX dll project in another project

    Hi,

    I know this sounds crazy but it happened and I have no idea about it. If anyone can give me some hint I really appreciate it.

    I have several ActiveX Dll projects which I reference in other projects. They are all in the same group. At the beginning when I set these up, perfect, no problem. Everytime I compile the project group, I just do it. If I modified the source of the dlls, I can compile them with no problem.

    After several days using the project group, Suddenly this annoying "permission denied drive:\path\anything.dll" pops up. So I thought I might reference the dll by the dll name, not the vbp name. So I checked the settings but they are right. The rediculous thing is It only happens if I want to compile one particular dll. Other dll projects are good as before. More funny thing is, if I close the project group and reopen it, it let me compile again. Then I make changes then the annoying thing pops up. Then I have to close the project group and reopen.

    Any one has any ideas? Tons of thanks.
    Last edited by ordnance; May 4th, 2005 at 01:01 PM.

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Reference an AxtiveX dll project in another project

    ordnance,

    Yes, strange thing happen in the IDE when your program does not release objects and memory properly when it is run. When this happens the IDE is unaware of these problems and sooner or later something bad will happen. Most often is you cannot compile.

    When you restart the IDE the memory and objects are released and you are able to compile again.

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    39

    Re: Reference an AxtiveX dll project in another project

    Quote Originally Posted by randem
    ordnance,

    Yes, strange thing happen in the IDE when your program does not release objects and memory properly when it is run. When this happens the IDE is unaware of these problems and sooner or later something bad will happen. Most often is you cannot compile.

    When you restart the IDE the memory and objects are released and you are able to compile again.
    Thanks randem, but this doesn't seems to be the case. When I restart the IDE, I can compile only once. When I try to compile it again, it doesn't let me. I don't even necessarily run the program yet. Any ideas?

  4. #4
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Reference an AxtiveX dll project in another project

    Notice randem mentioned releasing objects to clear memory. You may need to go over your programs code and check if objects are created and not cleared. IE:
    VB Code:
    1. Set object = Nothing
    2. 'or
    3. Unload Object
    Etc..

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  5. #5

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    39

    Re: Reference an AxtiveX dll project in another project

    Well, finally I did this. I removed the project that referenced the dll and recreated the project. Then I set up everything again and it works. Just don't know how long it will last. Thanks for your help.

  6. #6
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Reference an AxtiveX dll project in another project

    This is normal for the VB IDE. I have come to expect this when making my own Controls, usually .OCX objects
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

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