Strange Error on Compiled program 
Author Message
 Strange Error on Compiled program

I recently changed the filename of the database in my program from
Interdb.mdb to something else. I automatically open this database
during the application startup, which is followed by a simple login
screen. If the user clicks Cancel on the login screen I call db.Close
followed by End (there's currently nothing in the Unload event to worry
about). Running from the VB IDE there is no problem, however running
from a freshly compiled EXE gives me the following error when I click
Cancel on the logon screen:

Couldn't find file '<path>\Interdb.mdb'

I have done a search through my VB Project for any references to
Interdb.mdb but there are none - I replaced them all with the new
database filename earlier. Does anyone know why my program is still
looking for the old file when there doesn't seem to be any reference to
it in the source code? Also, why doesn't this happen when I run the
program from within the VB IDE?

Any help would be appreciated. TIA.

--== Sent via Deja.com http://www.*-*-*.com/
---Share what you know. Learn what you don't.---



Mon, 05 Nov 2001 03:00:00 GMT  
 Strange Error on Compiled program
Did you check all of the data controls for references to the old name in
addition to all the source code?

Chuck

Quote:

>I recently changed the filename of the database in my program from
>Interdb.mdb to something else. I automatically open this database
>during the application startup, which is followed by a simple login
>screen. If the user clicks Cancel on the login screen I call db.Close
>followed by End (there's currently nothing in the Unload event to worry
>about). Running from the VB IDE there is no problem, however running
>from a freshly compiled EXE gives me the following error when I click
>Cancel on the logon screen:

>Couldn't find file '<path>\Interdb.mdb'

>I have done a search through my VB Project for any references to
>Interdb.mdb but there are none - I replaced them all with the new
>database filename earlier. Does anyone know why my program is still
>looking for the old file when there doesn't seem to be any reference to
>it in the source code? Also, why doesn't this happen when I run the
>program from within the VB IDE?

>Any help would be appreciated. TIA.

>--== Sent via Deja.com http://www.deja.com/ ==--
>---Share what you know. Learn what you don't.---



Mon, 05 Nov 2001 03:00:00 GMT  
 Strange Error on Compiled program
No I didn't. That's a v. good point which I totally forgot about although if
that is the cause (I'll check tomorrow), why doesn't the error occur when
running within the VB IDE?

Thanks for your help.

Quote:

> Did you check all of the data controls for references to the old name in
> addition to all the source code?

> Chuck


> >I recently changed the filename of the database in my program from
> >Interdb.mdb to something else. I automatically open this database
> >during the application startup, which is followed by a simple login
> >screen. If the user clicks Cancel on the login screen I call db.Close
> >followed by End (there's currently nothing in the Unload event to worry
> >about). Running from the VB IDE there is no problem, however running
> >from a freshly compiled EXE gives me the following error when I click
> >Cancel on the logon screen:

> >Couldn't find file '<path>\Interdb.mdb'

> >I have done a search through my VB Project for any references to
> >Interdb.mdb but there are none - I replaced them all with the new
> >database filename earlier. Does anyone know why my program is still
> >looking for the old file when there doesn't seem to be any reference to
> >it in the source code? Also, why doesn't this happen when I run the
> >program from within the VB IDE?

> >Any help would be appreciated. TIA.

> >--== Sent via Deja.com http://www.deja.com/ ==--
> >---Share what you know. Learn what you don't.---



Mon, 05 Nov 2001 03:00:00 GMT  
 Strange Error on Compiled program
Thanks Chuck, you were right. Any ideas why this never caused a problem
in the VB IDE?

Quote:

> > Did you check all of the data controls for references to the old
name in
> > addition to all the source code?

> > Chuck




Quote:
> > >I recently changed the filename of the database in my program from
> > >Interdb.mdb to something else. I automatically open this database
> > >during the application startup, which is followed by a simple login
> > >screen. If the user clicks Cancel on the login screen I call
db.Close
> > >followed by End (there's currently nothing in the Unload event to
worry
> > >about). Running from the VB IDE there is no problem, however
running
> > >from a freshly compiled EXE gives me the following error when I
click
> > >Cancel on the logon screen:

> > >Couldn't find file '<path>\Interdb.mdb'

> > >I have done a search through my VB Project for any references to
> > >Interdb.mdb but there are none - I replaced them all with the new
> > >database filename earlier. Does anyone know why my program is still
> > >looking for the old file when there doesn't seem to be any
reference to
> > >it in the source code? Also, why doesn't this happen when I run the
> > >program from within the VB IDE?

> > >Any help would be appreciated. TIA.

> > >--== Sent via Deja.com http://www.deja.com/ ==--
> > >---Share what you know. Learn what you don't.---

--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---


Tue, 06 Nov 2001 03:00:00 GMT  
 Strange Error on Compiled program
The only thing I can think of, is perhaps that when running in the IDE the
program is more interpreted than compiled.  I would think that this might
cause some inconsistent execution.  Thats just a guess though.

Chuck

Quote:

>Thanks Chuck, you were right. Any ideas why this never caused a problem
>in the VB IDE?



Tue, 06 Nov 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Strange false compile error message

2. Strange Compile Errors at Run-time

3. Strange error at compile time

4. Error connecting to database after program is compiled and deployed

5. HELP! Compiling QB45 program error

6. Compiling Error "Program-memory overflow"

7. Error on installing compiled program

8. DLL loads correctly in VB4 Prog Env, but gives error in compiled program

9. VB 5 Problem: Error 3259 in compiled program

10. VB5 Problem: Error 3259 running compiled program

11. Automation Error 438 when running a compiled VB program

12. Error in Compiled Program but not in IDE...

 

 
Powered by phpBB® Forum Software