I'm running a new try to convert S.P.E. from VO to X#.
I get successful compilation of the first DLL but it crashes at the very beginning of execution when allocating the connetion structure.
Structures decl:
Code: Select all
VOSTRUCT SpeConnection
MEMBER __uServer AS PSZ
MEMBER __sUserName AS PSZ
MEMBER __sPassword AS PSZ
MEMBER __nSpeUserPort AS WORD
MEMBER __nSpeTcpPort AS WORD
MEMBER nTimeOut AS DWORD
MEMBER dwFlags AS DWORD
MEMBER oCSocket IS speSocket
VOSTRUCT speSocket
MEMBER handle AS DWORD
MEMBER nLastError AS LONG
MEMBER hConn AS SpeConnection
MEMBER nRecvSpeed AS LONG
Code: Select all
GLOBAL hCurrentSpeConnection AS SpeConnection
Code: Select all
hCurrentSpeConnection := MemAlloc(_SizeOf(SpeConnection))
but if I put MemAlloc to a generic PTR var, it gets a valid pointer.
Is this a not yet supported feature or am I mistaking something?
Thanks
Antonello