Access Dbf1 on Datamodule generate "raised exception class external SIGSEGV" lazarus / 16-Databases ---------------------------------------------------------------------- DelFly · 2013-08-14 12:35 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 ? ---------------------------------------------------------------------- DelFly · 2013-08-14 12:57 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; ---------------------------------------------------------------------- DelFly · 2013-08-14 13:12 Ok..  Made a new project, with 1 form and 1 datamodule. And that works fine.. strange... ---------------------------------------------------------------------- DelFly · 2013-08-14 13:21 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.