Subj : Re: Acces Violation mixing a simple BC and Delphi units To : borland.public.cpp.borlandcpp From : kokok_kokok Date : Wed Jun 02 2004 03:13 am The above example works ok. To fail I need to add the "uses" clausule. For some reason if 'uses' is not inserted, everything goes well. So the problematic unit is: ------------ Delphi Unit: ------------ unit UnitDelphi; interface uses Windows, Dialogs, Sysutils, Classes, DB, Forms, DBTables; type TMember = record id : integer; items : longint; rate : double; name : string; subname : string[255]; tag : boolean; end; function GetEmptyMember(): TMember; implementation function GetEmptyMember(): TMember; var a:TMember; begin a.name:='empty'; Result := a; end; end. .