Jump to content

Recommended Posts

Posted

I was working with a project and suddenly this error appears when I type the url

 

Un error ha ocurrido en la aplicación

Access violation at address 00829D19 in module 'CeccEvalW.exe'. Read of address 00000068

Reiniciar la aplicación

 

 

I know this is too general and you need a simplied test case; but I want to know if this error has a comun source. The project was working really well and now I cant runnig it again.

 

The last thing I did, before the error,  was modified a fastreport. Searching for a solution I erased all fastreports components and code asocieted, but the error remains. I have compiled other projects and worked fine.

 

Any help would be appreciated.

Posted

I found the solution. I had a table opened on desing time. The table has calc fields and some other fields use ongettext event. I still dont know exactly the problem, but closing the table in desing time solved the problem.

Posted

Those errors are a pain in the neck - same like adding forms/datamodules automatically to the .dpr file even if you explictly checked "no" in projects options.

 
Depending on the data-access components it is always a good advice to show a control-message if the superior connection is already opened on design-time mode (which can easily happen when working on different subsidiary Tables/Queries etc.)
 
To avoid this, I always do a simple check from start-up in my main TDataModule (which holds the Connection-Component) in the OnCreate event:

if <Connection>.Connected then
  ShowMessage("Connection open on Design-Time!");

Of course you can/might have to do the same with the "Active" setting of all the Tables and Queries - but if your DB-Interface uses a T<however>Connection Component, its initial "connected" setting counts!

  • 4 weeks later...
Posted

I found the solution. I had a table opened on desing time. The table has calc fields and some other fields use ongettext event. I still dont know exactly the problem, but closing the table in desing time solved the problem.

 

no need to close table at design time, this may solve the problem :

Put the code in the dataset beforeopen event :

procedure TMainForm.<table>BeforeOpen(DataSet: TDataSet);
begin
    if  <dataset.Connection> = Nil then
       <dataset.Connection>:= <connection>;
end;


  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...