Calling DioFile Object From C#
Artyom D.
Kursk,

Aug 26, 2009
8 Posts

Calling DioFile object from C#

Hello,
I’m just trying to create a simple application to use DioFile COM object from C#.
Here is my code:
Type dioFileType = Type.GetTypeFromProgID("GTDio.DioFile");
object file = dioFileType.InvokeMember(null, BindingFlags.CreateInstance, null, null, null);
/* Or you can use this ctor
object file = Activator.CreateInstance(dioFileType);
*/
object boards = dioFileType.InvokeMember("Boards",
                    BindingFlags.GetProperty, null, file, null);

Throws the COMException 0x80020010 (DISP_E_BADCALLEE).

First I wanted to invoke Open method but as it accepts 6 args and fails with the same error  I made an example with the class property.

I use GTDio32.dll version 3.2.42.0.


When I add a reference GTDio32.dll to my project letting Visual Studio to create a wrapper (Interop.GTDio.dll), I execute

GTDio.DioFile file = new GTDio.DioFile();

file.Open(fileName, GTDio.enumDioFileMode.dioFileModeCreate,
                    GTDio.enumDioBoardType.dioBoardTypeGX5150, 16, 0, 0);

file.InsertBoard();
and the last line throws FatalExecutionEngineError 0xc0000005

It looks like COM interface of GTDio works improperly.
Do you have any advice on this issue?
Thanks
Artyom

Artyom D.
Kursk,

Aug 27, 2009
8 Posts

Re: Calling DioFile object from C#

Hi, again,
I’ve clarified that the problem with latest version of GTDio32.dll file. Which one is 3.2.42.0. Right now the COM functionality of DioFile object is corrupt! When I registered the 3.0.34.0 version file via regsvr32.exe my app became to operate duly.
I’d like to pay Geotest support team attention to this issue.
Regards,
Artyom

Victor B.
Lake Forest, CA

Aug 27, 2009
91 Posts

Re: Calling DioFile object from C#

Hi Artyom,

We've duplicated the problem and are looking into the resolution.

Regards,
Victor Brode

Solution Available
Victor B.
Lake Forest, CA

Aug 27, 2009
91 Posts

Re: Calling DioFile object from C#

Hi Artyom,

I would like to send you some files to fix this problem via a M@GIC incident.  Could you update your profile information and create an incident in M@GIC?  Let me know if you need any help with this.

Regards,
Victor Brode (Geotest)


Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]