Page 1 of 1

bds2006 access violation - Urgent

Posted: Thu 22 Mar 2007 12:41
by missoesmundiais
I use bds2006 with updates and hot fix installed and with odac in a computer with 5.8.040 Windows 2000 sp4, amd Athlon 64 and with memoty 512mb. I use oracle 9.2.0.1 .0
create a connection program and and when execute in some another computer is presented me the following error.
“NET: Accesss violation at 00509b1d im modulates “conexao.exe”. Read of address 00000008.”
What it can is happening?
Before I used bds2005 and this type of problems did not happen. I formatted until my computer and I installed only bds, odac and oracle.

I also tested with versao odac 6 and continues the same thing

Bruno RIbeiro
Junta de Missões Mundiais
Rio de Janeiro
Brazil

Posted: Fri 23 Mar 2007 08:50
by Plash
Please provide us the Pascal code that causes access violation.

Posted: Fri 23 Mar 2007 12:13
by missoesmundiais
Uses
...,DB, DBAccess, Ora ;
...
...
...

procedure TForm1.Button1Click(Sender: TObject);
Var
v_Sessao : TOraSession;
begin
v_Sessao := TOraSession.Create(self);
with v_Sessao do
Begin
Options.Direct := true;
LoginPrompt := False;
Username := 'bruno_ribeiro';
Password := 'bfr';
Server := '192.168.0.2:1521:jmmdesv';
HomeName := 'OraHome92';

v_Sessao.Connected := true; // Erro

ShowMessage('Connected!!!');
End;
end;

Posted: Mon 26 Mar 2007 07:53
by Plash
If your application is built with run-time packages, make sure that version of the ODAC packages on the computer where your application raises the access violation, is exactly same as on the computer where you have built the application.