Re: Found the problem. INCREDIBLE!



FrancoJommi wrote:

Just tell me what you need to know more than just I said.

Well, there are a lots of things that you could do in more
'professional' way when describing your problem:

1. First, instead of this general Misc group, post your DB related
question to DB related newsgroup.

2. Word 'MyTable.dbf' is all you tell about your operating systems,
Delphi versions environment etc.!! Word DBF alone tells nothing. The
dBase file format itself is never the problem but the database engine
that accesses that DBF file could be. You know your engine but _we_
currently have no glue which engine you are using.

3. "I GOT A TERMINATING ERROR". The exact error message probably was not
that? I do not know any Delphi component or IDE that has "TERMINATING
ERROR" as one of its error messages. So what is the exact message?

4. You say:
" 2- I click on button1:
" 3- this opens program2 in window2, where a button executes a query
on Table2"
--> Why not show us your code, how exactly you call that second
Executable.

5. "4- I close program2 and go back to program1."
--> How do you close it, show us your code.

6. "I close program1 clicking on an Exit button, where Table1 is
closed."
--> So you have a button with a caption EXIT on your Form, and then you
have some code behind that EXIT button. Why not show and share that code
snippet with us?

7. "Now, I don't really understand why and how a query in program2 may
affect
the reference to a table component in program1, but it does!"

All right, now we are finally at the pinpoint of your problem. But at
this point I unfortunately have no means nor gifts how I could do all
the several quessings about your existing environment and code lines
right, and after that quess work give you a quessing about the possible
reason.

The sure part is that the second executable has no means to affect to
your executable-1 or your TTable or TQuery components on your
executable-1, if you do not specifically read some values or something
from the executable-2. All the error messages in executable-1 could only
be related to that that the DBF file(s) contents that you share with
executable-2 have been altered in the meantime. But even then your
executable-1 code must do something funny or doing it wrong if you get
"TERMINATING ERROR" style message.

Now you probably will give more technical details from your site. But
even that does not quarantee that I will never know the answer to your
problem or have time and willingness to come back to this issue. So if
my knowledge will not be adequate let's hope that someone else will. <g>

Cheers
JP
.


Quantcast