Hi all,

 From this point it's users responsibility to
pass parameters properly.

Ok. Next topic: coverage of potential C .dll functions.

IMO it's unworkable cover functions of n parameters with n size,
seems reasonable to restrict to 15 the number of parameters.

Currently only covering sizes of 4, 8 bytes in win32 and 8 bytes in win64.
This means that calls to PosibleDLLfunc( WORD wPar, BYTE bPar ) are not 
possible.
How many types of data have to be supported?
BYTE, WORD, DWORD, PVOID, float, double.

--
Xavi

El 08/02/2010 14:34, Viktor Szakáts escribió:
                ...                  its users job to
passing parameters according to call specification of
.dll function.

Yes, but I think it's not only Harbour.
Apply the patch attached to testdll.prg
Could someone test that about xBase++ and/or xHarbour?

Sorry, I can't see your point. It's a fact
that GPF can be caused by passing wrongly
formatted _raw_ parameters to C level functions.

It's not Harbour's job to protect against it.
Harbour's job is to create a working interface
in pure .c, which makes it possible for users
to pass these raw parameters from Harbour level
to .c level. That's all. It's currently tackled
together using ASM code, and this is the problem,
because it's non-portable, CPU, compiler and
compiler-setting dependent.

 From this point it's users responsibility to
pass parameters properly.

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to