ADO Library

tulliotullio Member Posts: 39
I have Navision 5.0 SP1 DB.
There are some CODEUNIT that using ADO Library and RUN with NAS.
Nas PC was windows 2003 server. All work great.

To develop we are using DB copy installed on windows 2008 server with same NAV version client/server.
I change two codeunit without change ADO reference but, when I import from test new object version start problem.

System show this error:
"It is not possible to assign a _Parameter to a Parameter"

stopping on an instruction that was not not modified!!!

I roll back old codeunit but now error stop in other codeunit that was called from that I changed and restored.
Investigating more I realize that the codeunti called by that was modified have changed in size. Their size is increased (some fate and time!!!).
Restoring also this all work great.
So, importing objects compiled with other libraries version (I suppose) something has not worked and has also modified codeunit connected!!!!!!

Now after a long time spent to understand the problem, I realized that the libraries mentioned are the same (ADO 2.7) version but in a develop environment is oldest.
In the test PC under regedit key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\Version is 6.1.7600.16385while on the other version was 6.1.7601.17514
So develop PC library version are earlier .... !!!

Finally exporting same object codeunit from different DB (develop DB and current DB) when I compare them using winmerge all reference row to ADO libray was modified and appear different in the develop version.

Develop version:
EVENT vRecordSet@1000000007::WillChangeField@9(cFields@1000000003 : Integer;Fields@1000000002 : Variant;adStatus@1000000001 : Integer;pRecordset@1000000000 : Automation "{EF53050B-882E-4776-B643-EDA472E8E3F2} 2.7:{00000556-0000-0010-8000-00AA006D2EA4}:'Microsoft ActiveX Data Objects 2.7 Library'._Recordset");

Current DB
EVENT vRecordSet@1000000007::WillChangeField@9(cFields@1000000003 : Integer;Fields@1000000002 : Variant;adStatus@1000000001 : Integer;pRecordset@1000000000 : Automation "{EF53050B-882E-4776-B643-EDA472E8E3F2} 2.7:{00000556-0000-0010-8000-00AA006D2EA4}:'Microsoft ActiveX Data Objects 2.7 Library'._Recordset_Deprecated");

How I can solve this problem?
Someone can help me to understand and solve problem?
Why same code not work and show strange error??
Sign In or Register to comment.