Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

I have a project made using nhibernate and Distributed Transaction Coordinator(MSDTC), I have this "uid=DBA;pwd=sql;DBF={0};AutoStop=No;POOLING=false;start=dbsrv11 -c 32M -tmf -tmt 20" as my connection string, but when i run several tests that have a transaction, it throws the following error:

*System.Exception: Exception Encapsulada via Mock. ---> NHibernate.Exceptions.GenericADOException: could not load an entity: [Plutus.Dominio.Entidades.Agencia#5][SQL: SELECT agencia0_.Id as Id14_0_, agencia0_.Ativo as Ativo14_0_, agencia0_.Nome as Nome14_0_, agencia0_.NumeroAgencia as NumeroAg4_14_0_, agencia0_.NumeroAgenciaDV as NumeroAg5_14_0_, agencia0_.BancoEmpresa_Id as BancoEmp6_14_0_ FROM Agencias agencia0_ WHERE agencia0_.Id=?] ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.*

When i run the same tests without transaction, it doesn't throws any error.

What can I do to fix it?

asked 01 Jun '10, 20:48

Adriano's gravatar image

Adriano
3112
accept rate: 0%

edited 01 Jun '10, 21:11

Zote's gravatar image

Zote
1.7k364051

Did you find any answer? If so, please post it here. Thanks!

(28 Jul '10, 08:48) Breck Carter
Replies hidden

Not yet, this project is frozen.

(28 Oct '11, 12:28) Zote

I would suggest that you pose your question in the NHibernate forums or on the main StackExchange site. Be prepared to present diagnostic information (NHibernate build, stack traces, and the like).

permanent link

answered 02 Jun '10, 02:27

Glenn%20Paulley's gravatar image

Glenn Paulley
10.8k576106
accept rate: 43%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×143
×59
×8
×4

question asked: 01 Jun '10, 20:48

question was seen: 3,205 times

last updated: 28 Oct '11, 12:28