Problems with ByRef pointers

Using (or providing) Microsoft.NET Classes

Problems with ByRef pointers

Postby Budgie on Fri Jul 02, 2010 9:29 pm

I'm accessing a .NET class called BigInt

One of the instance methods is overloaded, and when I call it, I see this in the status:

Ambiguous match: First Entry called
Emil.GMP.BigInt Root(Int32, Boolean ByRef)
Emil.GMP.BigInt Root(UInt32, Boolean ByRef)
Emil.GMP.BigInt Root(Int32, Emil.GMP.BigInt ByRef)
Emil.GMP.BigInt Root(UInt32, Emil.GMP.BigInt ByRef)

Unfortunately, I want to call the third or fourth entry, but the first one is being called, probably because, although my ByRef ptr points to a BigInt, the interface can't tell the difference between that and a pointer to a Boolean. So I end up with this:

System.InvalidCastException: Specified cast is not valid.
... followed by a traceback that needn't worry us here.

What can I do to sort this out? Recompiling the dll to reorder the methods is not possible.
User avatar
Posts: 36
Joined: Thu Nov 26, 2009 9:22 am
Location: Beckenham

Re: Problems with ByRef pointers

Postby Vince|Dyalog on Mon Jul 05, 2010 10:38 am

Hi Jane,

Could you send us at support a reproducible example of your problem, along with letting us know where you got the DLL that you are trying to use please?


Posts: 356
Joined: Wed Oct 01, 2008 9:39 am

Return to Microsoft.NET

Who is online

Users browsing this forum: No registered users and 1 guest