473,408 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Error zero

I got a problem I don't understand.

I am developing a VB application for a customer. On my PC's the application
is running OK, but on the customer PC the app hangs. When I look at the err
log I only got the message that the error nr is 0. Normally this line
appears only in my err.log when I forgot "Exit Sub/Function" before the
error handler. But this is not the case here.

I had the problem myself at the beginning of the project when I tested the
app on my test PC (On my dev PC the problem did not occur; everything worked
well there). The line where the zero error ocurred, tried to access a table
in a MS Access (mdb) database file. Since the referenced DAO was updated to
version 4 (MS Access 2000) and the database was constructed using MS Access
97, I changed the reference back to DAO 3.51. After that the zero error
disappeared until now.

Since I can only guess I has something to with a bad reference to a DAO
library; I don't know what is causing the problem however. Completely
reinstalling the app on the customers PC does not help.

I got the following questions.
First of all; how can a "zero error" act a as normal (that is a non zero)
error, by jumping form a valid line of code to the err handler like a normal
error? (Also the Err.LastDllError returns a zero.)
Secondly, what is the cause, so I can tackle this problem.

I appreciate any help.

Hans Heezemans
hh@iservi.com
www.iservi.com

Nov 12 '05 #1
9 1553
Does the other PC have the DAO 3.51 referenced file?
Nov 12 '05 #2
Step thru the code line by line and check all the pertinent values at the
point of failure.
Nov 12 '05 #3
Yes it has.

Hans Heezemans
www.iservi.com

"hal boyles" <ha********@timeinc.com> schreef in bericht
news:bk**********@inntp-m1.news.aol.com...
Does the other PC have the DAO 3.51 referenced file?

Nov 12 '05 #4
I have done that. Code that runs without any problem on my Developer PC now
gives will generate the zero error when accessing a table in the MDB file.
The table and the file are OK and the installation proces has been OK; all
files and DLL's are installed.

Hans Heezemans
www.iservi.com

"hal boyles" <ha********@timeinc.com> schreef in bericht
news:bk**********@inntp-m1.news.aol.com...
Step thru the code line by line and check all the pertinent values at the
point of failure.

Nov 12 '05 #5
Hans,

just wondering, but what happens if you try to compile the code on
the machine you're installing on? (Or is that not an option?) If you
go to Tools/References, do you get MISSING next to any of your
referenced libraries? that *might* be the cause of your problem.
Nov 12 '05 #6
"Pieter Linden" <pi********@hotmail.com> schreef in bericht
news:bf**************************@posting.google.c om...
Hans,

just wondering, but what happens if you try to compile the code on
the machine you're installing on? (Or is that not an option?) If you
go to Tools/References, do you get MISSING next to any of your
referenced libraries? that *might* be the cause of your problem.


Thanks for Your reaction Pieter,

but compiling the code on the client machine is not really a option. Besides
that the problems he has are gone since I send him a copy of the latest
version of the database (he apparently forgot to update it). So in a way the
problems have to with missing elements in the database and also not; because
when the database is completely up to date, the zero error still occurs.

Hans Heezemans
www.iservi.com
Nov 12 '05 #7
"hal boyles" <ha********@timeinc.com> schreef in bericht
news:bk**********@inntp-m1.news.aol.com...
Step thru the code line by line and check all the pertinent values at the
point of failure.

Thanks for the reaction Hal,

but I can do that only on a developers PC and there the complaint does not
occur. If I install VB on the client (or my test PC) that PC will become a
developers PC and (to my experience) usually will not have the problem any
more. So I am not inclined to try that. Which is not to say I will not try
it if the problem continues.

Hans Heezemans
www.iservi.com
Nov 12 '05 #8
"hal boyles" <ha********@timeinc.com> schreef in bericht
news:bk**********@inntp-m1.news.aol.com...
Does the other PC have the DAO 3.51 referenced file?

Yes it has. DAO 3.51 is part of setup program. The only thing is that the
client also has Access 2000; which might interfere, but to my experience if
DAO 3.51 is installed last, no problems should occur. And by reďnstalling
anew (which we did) the program the references to DAO 3.51 are reset if they
were overwritten by Acces 2000. Furthermore the client has Windows XP, so
DAO 3.51 "should" work with my app despite the presence of Access 2000.

Hans Heezemans
www.iservi.com
Nov 12 '05 #9
I want to thank all contributors. I can initiate the error zero on my
developer PC by a) making the reference to msjet35.dll invalid or b) by
making a table corrupt and subsequently run the compiled exe file. I know
now how to solve the problem.
Yours friendly,

Hans Heezemans
hh@iservi.com
www.iservi.com
Nov 12 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ryan | last post by:
I have the following line in a select statement which comes up with a divide by zero error. CAST(CASE Splinter_Status WHEN 'SUR' THEN 0 ELSE CASE WHEN Sacrifice>=1 THEN...
19
by: Alf P. Steinbach | last post by:
// As usual the error message directs one to the report the bug. // // And as usual there is absolutely no way to do so without paying for // the privilege... // // Or using three or four hours...
0
by: Gary Carson | last post by:
Can anyone tell why the query below would throw a divide-by-zero error? The only reason I can see for the error happening would be if SUM() came out to be zero, but this never happens with the...
6
by: Ken | last post by:
When running a program in the debugger, what would cause it to crash without any error messages? I get "The program has exited with code 0 (0x0)". The program is a MDI app with threading for...
2
by: DazedAndConfused | last post by:
I converted a C# example of using dll crypt32 to VB .NET. The converted example fails when Encypting/Decypting. I found that if instead of defining a variable as and setting the values for...
10
by: Lisa | last post by:
In translating the formula for calculating lottery odds for various conditions into a Visual Basic Program, I have apparently missed something in that I get errors in the part of the calculation...
35
by: jeffc226 | last post by:
I'm interested in an idiom for handling errors in functions without using traditional nested ifs, because I think that can be very awkward and difficult to maintain, when the number of error checks...
5
by: mike3 | last post by:
Hi. Is this a good idea?: <begin code> /* Addition operator: += */ const BigFix &BigFix::operator+=(const BigFix &rhs) { ErrorType err; int lhs_sign = sign, rhs_sign = rhs.sign;
25
by: notahipee | last post by:
I have been trying to cin an number from 0 to 9 with a leading 0. For example 00 or 07. I was using a switch case. switch (int) { case 01: break; case 02: break;..... My problem arises at 08...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.