I'm using the ftdixx driver and ftdi.so file to communicate with ft232h module. FT_Open(iport, &fthandle) function doesn't work with normal user. If it is root user,it is working and opening the port .In normal user mode, it is failing with segmentation fault in FT_Open(iport, &fthandle) function. So what could be cause of this issue.
int main()
{
FT_STATUS ftstatus;
FT_HANDLE fthandle;
int iport =0;
DWORD libversion = 0;
ftstatus = FT_GetLibraryVersion(&libversion)
if(ftstatus != FT_OK)
{
}
ftstatus = FT_Open(iport, &fthandle)
if(ftstatus != FT_OK)
{
}
return 0;
}