Hi, all
I have some problem with calling the dll function.
DLL has a simple function
void __cdecl DLLFunc2 (void)
{
printf("DLLfunc2\n");
return ;
}
and RT executes the very simple program
case 1
while (!RTIsShuttingDown ())
{
Sleep (100);
printf("RTmain\n");
}
case 2
while (!RTIsShuttingDown ())
{
Sleep (100);
DLLFunc2();
}
case 1 shows the "RTmain" every 0.1s exeactly
case 2 shows the "DLLfunc2" a about 0.3s.
I've used two method that use import library and Win32API to call the function but the result was same.
Calling the DLL function on RT target is excuted slowly? and why??
reference file shows result of trace