EAccessViolation - 'dbodbc11.dll

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
yar
Posts: 15
Joined: Sun 23 Mar 2014 10:47

EAccessViolation - 'dbodbc11.dll

Post by yar » Sun 23 Mar 2014 10:59

Hi,

I use through ODBC and DB SQLAnywhere
When I run procedure
I get a crash:

EAccessViolation - Access violation at address 04C2E870 in module 'dbodbc11.dll'. Write of address 00,000,008

[Microsoft] [ODBC Driver Manager] Function sequence error

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: EAccessViolation - 'dbodbc11.dll

Post by AlexP » Mon 24 Mar 2014 13:15

Hello,

Please send the script for creating the procedure, and also specify the exact versions of IDE, UniDAC and SQLAnywhere client and server.

yar
Posts: 15
Joined: Sun 23 Mar 2014 10:47

Re: EAccessViolation - 'dbodbc11.dll

Post by yar » Mon 24 Mar 2014 16:33

delphi 7 , SQLAnywhere v11

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: EAccessViolation - 'dbodbc11.dll

Post by AlexP » Tue 25 Mar 2014 08:12

Please send the script for creating the procedure.

yar
Posts: 15
Joined: Sun 23 Mar 2014 10:47

Re: EAccessViolation - 'dbodbc11.dll

Post by yar » Tue 25 Mar 2014 09:27

alter procedure DBA.WEBXMLDataEdit( @sp_Action smallint,@sp_pknRecID integer,@sp_WorkingCompany integer,@sp_XMLInfo timestamp,@sp_XMLType varchar(15),@sp_XMLData long varchar,@sp_DateReplication timestamp,@sp_DateImportAsakim timestamp,@sp_XMLID integer,@sp_nPopulationCardNumber integer,@sp_IDWEBSettings integer,@sp_TableName integer,@sp_ReturnedPknRecID integer output )

add @sp_TableName integer
add @sp_nPopulationCardNumber integer @sp_IDWEBSettings integer
add @sp_XMLID integer
add @sp_Action = 8
add DateImportAsakim
add DateReplication
created for project WEB

as
begin
declare @sp_Shrek integer
if(@sp_Action = 3)
begin
insert into WEBXMLData( WorkingCompany,
XMLInfo,XMLType,XMLData,DateReplication,
DateImportAsakim,XMLID,nPopulationCardNumber,
IDWEBSettings,TableName )
values( @sp_WorkingCompany,@sp_XMLInfo,@sp_XMLType,
@sp_XMLData,@sp_DateReplication,@sp_DateImportAsakim,
@sp_XMLID,@sp_nPopulationCardNumber,@sp_IDWEBSettings,@sp_TableName )
select @sp_ReturnedPknRecID = @@identity
end
else
if(@sp_Action = 2)
begin
update WEBXMLData
set WorkingCompany = @sp_WorkingCompany,XMLInfo = @sp_XMLInfo,XMLType = @sp_XMLType,
XMLData = @sp_XMLData,DateReplication = @sp_DateReplication,DateImportAsakim = @sp_DateImportAsakim,
XMLID = @sp_XMLID,nPopulationCardNumber = @sp_nPopulationCardNumber,IDWEBSettings = @sp_IDWEBSettings,
TableName = @sp_TableName where pknRecID = @sp_pknRecID
end
else
if(@sp_Action = 6)
begin
update WEBXMLData set XMLID = @sp_XMLID where pknRecID = @sp_pknRecID
end
else
if(@sp_Action = 7)
begin
update WEBXMLData set DateImportAsakim = @sp_DateImportAsakim where pknRecID = @sp_pknRecID
end
else
if(@sp_Action = 8)
begin
update WEBXMLData set XMLData = @sp_XMLData where pknRecID = @sp_pknRecID
end
else
if(@sp_Action = 12)
begin
delete from WEBXMLData where pknRecID = @sp_pknRecID
end
end

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: EAccessViolation - 'dbodbc11.dll

Post by AlexP » Wed 26 Mar 2014 09:57

Please provide the code causing the error and the scripts to create used objects, or send a small sample demonstrating the problem to alexp*devart*com.

Post Reply