Results 1 to 7 of 7

Thread: performance of ActiveX Dll with Class module

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    35
    I have create a ActiveX Dll with a Class module.
    It preforms ok, when I am running it in a VB-Project-Group,
    as soon as I reference the compiled dll it is terribly slow.

    Does anybody know why, and how to fix it?

    Details:

    The class is intended to save data to a file. The data is provided by srting and string array parameters.

    [Edited by rfo on 11-03-2000 at 09:03 AM]
    rfo

  2. #2
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    It all depends on what your doing with it, and what your passing back and forth (amongst many other things).

    Give us some more details.




    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  3. #3
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    rfo, the mail addy you gave me bounced.

    so...

    ok, i get you.
    Again, it could be any number of things.

    If you want to send some source, i'll take a look.



    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    35
    I know the reason now, but still no solution!

    It is because I am passing a string array to a class
    function. I need to pass at about 500 bytes to that function.
    How do I do that effectively?
    rfo

  5. #5
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    if you wanted to get narly, you could memcopy.


    td.

    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  6. #6

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    35
    I am going to make a couple of experiments. I'll post the results...
    rfo

  7. #7

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    35
    Believe it or not!

    The reason was that I used the App-Version-Properties
    (Major, Minor and Revison) for each entry of the string-
    array parameter. These properties are obviously slow when used in a ActiveX-Project, as soon as it is compiled.

    The same code runs in a fraction of a second, as opposed to
    7 seconds when using the App-Version-Properties about 600 times!

    [Edited by rfo on 11-06-2000 at 06:52 AM]
    rfo

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