|
-
Nov 3rd, 2000, 08:50 AM
#1
Thread Starter
Member
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]
-
Nov 3rd, 2000, 08:59 AM
#2
Hyperactive Member
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.
-
Nov 3rd, 2000, 09:46 AM
#3
Hyperactive Member
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.
-
Nov 3rd, 2000, 10:56 AM
#4
Thread Starter
Member
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?
-
Nov 3rd, 2000, 11:04 AM
#5
Hyperactive Member
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.
-
Nov 3rd, 2000, 11:09 AM
#6
Thread Starter
Member
I am going to make a couple of experiments. I'll post the results...
-
Nov 6th, 2000, 06:48 AM
#7
Thread Starter
Member
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]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|