Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Error(9) in FLL makes VFP crash
Message
De
27/11/2005 13:49:51
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
_Error(9) in FLL makes VFP crash
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01072278
Message ID:
01072278
Vues:
56
Hi all,

If I compile the following C function as an FLL with
MS VC++ 2005 Express Edition, _Error() does not work as
expected.

Eg _Error(1) raises Error 1001 "Feature is not available"
and Error(9) even makes VFP crash!

VFP reports "incorrect handle during compaction" with _Error(9).
Why? Is there some incompatibility?

void _fastcall TestError(ParamBlk *parm)
{
_Error(p0.val.ev_long);
}

extern "C" FoxInfo MyFoxInfo[] = {
{ "TESTERROR",(FPFI) TestError, 1, "I"}
} ;

extern "C" FoxTable _FoxTable = {
( FoxTable FAR * ) 0,
sizeof( MyFoxInfo ) / sizeof( FoxInfo ),
MyFoxInfo
};

* foxpro code
set library to locfile("myfll.fll")
TestError(1) && raises error 1001
TestError(9) && makes VFP crash
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform