Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 21456, DELPHI - VB array of array of variant

by Salvatore Biazzo Email: Anonymous


Since the passage of the code from the version 5 to the 6 (and also to the 7) of Delphi, my application don't work more.
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 7.0 8 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Fri, 20 Feb 2004 01:48:58 GMT
Originally uploaded on Fri, 20 Feb 2004 01:49:46 GMT
Description
Since the passage of the code from the version 5 to the 6 (and also to the 7) of Delphi, my application don't work more.
The error generate is "Access Violation at Address ...".
My Application is composed by a simple exe and a service. The Service calls a Vb's Dll through DCOM ("CreateOleObject"). Exists a function, in the VB's Dll, that accepts as parameter a variant, and returns another variant variable, precisely an array of array of variant.

...

var

objPersona: OleVariant;
warning, error: variant;


objPersona := CreateOleObject('ESABGCrm.clsCrContatti');
errors := objPersona.Salva(esa.objTransazione, rs, FALSE, enClientWin, warning, esa.objGestInfo, esa.objInfoSys));

...

the error happen when the function returns the value of the variable called "errors", an Access Violation error, and at this point i can't continue to work and manipulate the data that VB return. The VB function work ok, and the VB's Code isn't changed. I try every possible operation with pointers, without results.

at this point the last thing i can think is that the Ole Automation management is changed from D5 to D7, or the change is happened in the management of the variant objects.

Is This Problem Solvable in a some way ? Can You Please reply me about it ?

Thanks

E-Mail me to f.zatta@esasoftware.com

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03