VB - Different behavior on different machines 
Author Message
 VB - Different behavior on different machines

I've created an ActiveX DLL, wich defines an object type to EDI with
one of my systems. This component offer many methods and properties to
allow the user to fill all the information on the object and then write
a file to be sent according to my specs, using one of it's methods.

The file reading process is also handled by a method of the component,
wich returns a collection of the same object type, read fm the file.

Everything is working perfectly, was exaustively tested and works
exactly as expected, but I still can't distribute it to my
collaborators because it's not behaving the same way as my machine!

I've tested it on 3 different machines. Two of them worked fine. On the
3rd one, the file was created, but the information was not stored in it!

My machine has VB 6.0 (fix #4) installed. The others don't (I used a
package created in VB pkg mngr for distribtn). All the 3 machines are
Win95.

The component was originally designed using a FileSystemObject to
create the file, replaced later by simple Write # and Input #
statements. The behavior (in fact, the problem) was the same.

What is missing? I suspect there's any base DLL I must upgrade. I have
to know what it is to recomment upgrade on my collaborators!

If anybody has a hint for me, I wud be really glad to see it.

Tks for any news.
--
Ivan Daudt

Sent via Deja.com
http://www.*-*-*.com/



Wed, 04 Jun 2003 02:35:09 GMT  
 VB - Different behavior on different machines
It is sure you point the problem : something is missing. There's some point
you can check:
-EDI means you're probably using a data access component like ADO to build
your message.  Check the version: the file is named msado15.dll for ado.
-Patch were release by microsoft for Y2k compatibility : check this
-In the package, be sure to include all your dependency (even if some seems
without topic)
-By using a log file, try to find exactly where the things goes wrong : use
Open ... For Append to keep a trace.  I'm sure you're using error
handling... make sure you're not raise an error while in "On error resume
next".  I had a bug many time with it : the err.number war 0 even if there
was one (I know it was a desigh bug, but it pretty easy to fall in it).  Use
code in your error trap instead.

I hope this will help


Quote:

>I've created an ActiveX DLL, wich defines an object type to EDI with
>one of my systems. This component offer many methods and properties to
>allow the user to fill all the information on the object and then write
>a file to be sent according to my specs, using one of it's methods.

>The file reading process is also handled by a method of the component,
>wich returns a collection of the same object type, read fm the file.

>Everything is working perfectly, was exaustively tested and works
>exactly as expected, but I still can't distribute it to my
>collaborators because it's not behaving the same way as my machine!

>I've tested it on 3 different machines. Two of them worked fine. On the
>3rd one, the file was created, but the information was not stored in it!

>My machine has VB 6.0 (fix #4) installed. The others don't (I used a
>package created in VB pkg mngr for distribtn). All the 3 machines are
>Win95.

>The component was originally designed using a FileSystemObject to
>create the file, replaced later by simple Write # and Input #
>statements. The behavior (in fact, the problem) was the same.

>What is missing? I suspect there's any base DLL I must upgrade. I have
>to know what it is to recomment upgrade on my collaborators!

>If anybody has a hint for me, I wud be really glad to see it.

>Tks for any news.
>--
>Ivan Daudt

>Sent via Deja.com
>http://www.deja.com/



Wed, 04 Jun 2003 20:02:08 GMT  
 VB - Different behavior on different machines


Quote:
> It is sure you point the problem : something is missing. There's some
point
> you can check:
> -EDI means you're probably using a data access component like ADO to
build
> your message.  Check the version: the file is named msado15.dll for
ado.
> -Patch were release by microsoft for Y2k compatibility : check this
> -In the package, be sure to include all your dependency (even if some
seems
> without topic)
> -By using a log file, try to find exactly where the things goes
wrong : use
> Open ... For Append to keep a trace.  I'm sure you're using error
> handling... make sure you're not raise an error while in "On error
resume
> next".  I had a bug many time with it : the err.number war 0 even if
there
> was one (I know it was a desigh bug, but it pretty easy to fall in
it).  Use
> code in your error trap instead.

> I hope this will help


> >I've created an ActiveX DLL, wich defines an object type to EDI with
> >one of my systems. This component offer many methods and properties
to
> >allow the user to fill all the information on the object and then
write
> >a file to be sent according to my specs, using one of it's methods.

> >The file reading process is also handled by a method of the
component,
> >wich returns a collection of the same object type, read fm the file.

> >Everything is working perfectly, was exaustively tested and works
> >exactly as expected, but I still can't distribute it to my
> >collaborators because it's not behaving the same way as my machine!

(...)

Jean,

Many tks for yr feedback.

Just to explain some of yr items:
- No, I'm not using ADO or any database engine to write my files.
They're pure ASCII files. The problem I was having was because the file
recorded was empty!

I used the class FileSystemObject to create my file. This class depends
of the Scripting class to work, where I believe was the problem.
My component needs those classes, but the interface doesn't and VB was
not identifying it as part of the dependency, exactly as U assumed.

Anywhay, I discovered that everything works perfectly if the user
installs I.E. 5.x. Believe because I.E. also updates some parts of the
Windows kernel and add many new components to the system by itself.

Some of them may match with VB's components, and then my app works well
when IE 5.x is installed.

Guess what? When I distribute the app & my component, I warn our
collaborators that it needs IE 5.x to work! And everyone becomes
happy! :-)

Hope it help somebody else, before they leave VB...

Happy new year/century/millenium for us all!
Ivan Daudt

Sent via Deja.com
http://www.deja.com/



Wed, 18 Jun 2003 00:22:47 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Same app but different resonse time on identical but different machine on same network

2. Different behavior when using form from Outlook or (through VB) Access

3. Text field and different behavior between IIS and VB

4. Installing VB.NET Windows Service on different machine.

5. Error opening VB project on different machines

6. VB EXE crashes on different machines

7. Different behaviors if MDB or MDE

8. Mailmerge - different behavior on Win95 & NT

9. Different behavior between normal and debug mode!

10. Problem with Attachment.remove: different behavior when debugging?

11. Applescript with MacScript, different behavior between OS9 and OSX

12. behavior of Getlocale() on different versions of OS

 

 
Powered by phpBB® Forum Software