From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DS_OpenEx fails, error creating default control

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.

 

0 Kudos
Message 1 of 2
(1,926 Views)
0 Kudos
Message 2 of 2
(1,854 Views)