Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Crash in IDE

Status
Not open for further replies.

bbegley

Programmer
Apr 29, 2002
228
US
I have a problem running my program inside delphi. When I am inside delphi, the program will run fine once, but the second time I run it, it tells me that a record/key has been deleted and that the table is corrupt. If I alternate running it in delphi and from the exe there is no problem. I can run it repeatedly from the exe alone. If I try to run it twice in a row from delphi, I get the error.

We are using paradox tables, and although we have the alias configured in the bde administrator, we set the alias dynamically in the program. "The difference between practice and theory is that in theory, there is no difference between practice and theory" - Somebody's tag line I stole
 
I found the problem. We open the tables at run time, and we occasionally replace the table with blank copies. Someone set one of the tables to Active in the data module, so delphi wasn't letting go of it. "The difference between practice and theory is that in theory, there is no difference between practice and theory" - Somebody's tag line I stole
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top