SIOpen fails to return handle

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
psinkner
Posts: 5
Joined: Thu Sep 24, 2015 8:32 am

SIOpen fails to return handle

Post by psinkner »

Hello,
I am using the straight out of SDK MFX example code (code below) to receive input from Space navigator in my Application and I am handling the 3D mouse messages via the registered WM_3DMOUSE message. This works fine in several of my OpenGL views.
The problem is, that after about three days of using my computer, SiOpen no longer returns valid handle and I have to restart my computer to get it working again.
This happened twice already...

This is a printout from 3DxService.log
00002000 3:52:17.017: siappdll: __FILE__: .\src\appsi.cpp, __LINE__: 4531, ErrorVal: 2, hdl=0x1c1e924
00002000 3:52:17.229: siappdll: __FILE__: .\src\appsi.cpp, __LINE__: 4531, ErrorVal: 2, hdl=0xa0280f4
00002000 3:52:17.371: siappdll: __FILE__: .\src\appsi.cpp, __LINE__: 4531, ErrorVal: 2, hdl=0xa0ae224
00002000 3:52:17.565: siappdll: __FILE__: .\src\appsi.cpp, __LINE__: 4531, ErrorVal: 2, hdl=0xa0b0084
00002000 3:53:46.107: siappdll: __FILE__: .\src\appsi.cpp, __LINE__: 2178, ErrorVal: 2
00002000 3:53:58.912: siappdll: __FILE__: .\src\appsi.cpp, __LINE__: 2178, ErrorVal: 2
First 4 lines are from my application, next two are from your 3DxTest.exe - that one comes back with error message that no supported devices are available.
Space Navigator is plugged in and working in other application - i.e. Visual Studio, Explorer,... and your Cube3D.exe, but the sui_viewer.exe does not work.

Any ideas about what is going on? Thank you in advance,


int res; //result of SiOpen, to be returned
SiOpenData oData; //OS Independent data to open ball
SiOpenWinInit (&oData, m_hWnd); //init Win. platform specific data
SiSetUiMode(&m_DevHdl, SI_UI_ALL_CONTROLS); //Config SoftButton Win Display

if ( (m_DevHdl = SiOpen ("RAYNOK", SI_ANY_DEVICE, SI_NO_MASK, SI_EVENT, &oData)) == NULL ) {
SiTerminate(); //called to shut down the 3DxWare input library
res = 0; //could not open device
return res;
}
ngomes
Moderator
Moderator
Posts: 3321
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: SIOpen fails to return handle

Post by ngomes »

Hi psinkner,

Do you need to reboot or is is enough to restart the driver (3DxService.exe)? You can stop and start using the "Stop Driver" and "Start Driver" shortcuts in the Start menu.
psinkner
Posts: 5
Joined: Thu Sep 24, 2015 8:32 am

Re: SIOpen fails to return handle

Post by psinkner »

So far I have tried the computer restart, because I was not aware of the Start/Stop drive option. Will try that next time it happens.
Thanks,
psinkner
Posts: 5
Joined: Thu Sep 24, 2015 8:32 am

Re: SIOpen fails to return handle

Post by psinkner »

Hello, it happened again a couple of times.
I was able to get the functionality back by using the "Stop Driver" and "Start Driver" shortcuts in the Start menu and restarting my program. Any ideas what might be causing this and how I can prevent this?
Thanks,
Post Reply