Recent

Author Topic: Access Dbf1 on Datamodule generate "raised exception class external SIGSEGV"  (Read 2320 times)

DelFly

  • New Member
  • *
  • Posts: 38
Im trying to create a database, the routinbe to create it is placed in the DataModule.
As soon i call the create routine lazarus stops with "raised exception class external SIGSEGV" Its saying that this line is generating the error With DMosra.Dbf1 do
useing for basic test the follwoing code to rule out oytther problems. still no luck.

Code: [Select]
  With DMosra.Dbf1 do
  Try
   
  Except

  end;

copied the code to the mainform unit with button click, same error
placed on mainform a Tdb and changed the code so its useing that, it works fine.
Not seeing why it would fail, but i need to DataModule to keep soem code at central place.

So, why can i not access the database datamodule items ?
Cant touch anything on computer without hitting some bug.

DelFly

  • New Member
  • *
  • Posts: 38
Disabled the debugger, and for soem strange reason i get access violation.
used this code, more basic is not possible.

Code: [Select]
procedure Tfrmmain.Button1Click(Sender: TObject);
begin
  With DMosra.DBFsimulator do
  Try
    begin
    end;
  Except
    begin
    end
  end;
end;
Cant touch anything on computer without hitting some bug.

DelFly

  • New Member
  • *
  • Posts: 38
Ok..  :o %)

Made a new project, with 1 form and 1 datamodule. And that works fine.. strange...
Cant touch anything on computer without hitting some bug.

DelFly

  • New Member
  • *
  • Posts: 38
 :-[  :-[  :-[

just a simple case, "blame the user behind the keyboard"  :-\
Made a declaration to the DM unit from the main form unit and that generated the error.

Sorry, my mistake ! thanks for reading.
Cant touch anything on computer without hitting some bug.

 

TinyPortal © 2005-2018