General information
Category:
Coding, syntax & commands
Title:
_Error(9) in FLL makes VFP crash
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only