Variable number of parameters

This forum is meant for questions about the Visual FoxPro Language support in X#.

leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Variable number of parameters

Post by leon-ts »

Robert,
robert wrote: I already confirmed that there is a problem with NULL_PTR
Yes, thanks!
I just made an additional clarification about the type System.Void*, because your post was about System.IntPtr.

Best regards,
Leonid
Best regards,
Leonid
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Variable number of parameters

Post by leon-ts »

I just discovered one more problem. I don’t know if it is related to the previous problem (NULL_PTR), so I will describe it here. If you pass a non-NULL PTR parameter to the function, a FatalExecutionEngineError exception is thrown.

Example (function):

Code: Select all

FUNCTION MyTestFunc(a PARAMS OBJECT[]) AS VOID
	RETURN
Call:

Code: Select all

VAR p := (PTR)0x0234FF01
MyTestFunc( p, "abc", (DWORD)1, NULL_STRING )
Best regards,
Leonid
Best regards,
Leonid
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Variable number of parameters

Post by robert »

Leonid,

The Ptr problems are now solved. When a Intptr, void* or any pointer at all is assigned to an object it is now "boxed". And when it assigned back it is "unboxed".

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Variable number of parameters

Post by leon-ts »

Robert,

This is very good news! Thanks!

Best regards,
Leonid
Best regards,
Leonid
Post Reply