06-12-2019 07:47 PM
Hi
I'm using datasocket to get data from a website and find this fatal error sometimes where DS_OpenEx is called
ComponentWorks
Error creating default control
I'm using Labwindows CVI 2012 sp1, windows 7 64bit,and DS_OpenEx is called in a thread
CmtScheduleThreadPoolFunction (DEFAULT_THREAD_POOL_HANDLE, getData, NULL,NULL);
int CVICALLBACK getData (void *functionData)
{
......
while(1)
{
Delay(0.05);
res = DS_OpenEx (url, DSConst_ReadAutoUpdate, NULL, NULL,DSConst_PollingModel,10000,
&dsHandle);
if(res == E_DATASKT_TIMEOUT_EXPIRED)
{
continue;
}
......
DS_DiscardObjHandle (dsHandle);
}
return 0;
}
this error occurs randomly.I have no idea about how it happens.
Can anyone help me? Thanks in advance.
06-30-2019 09:42 PM
I found this similar problem in the forum. Hope it helps: