Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Error(9) in FLL makes VFP crash
Message
From
27/11/2005 13:49:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
_Error(9) in FLL makes VFP crash
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01072278
Message ID:
01072278
Views:
58
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
Next
Reply
Map
View

Click here to load this message in the networking platform