Author Topic: NullReferenceException when closing server  (Read 870 times)

Offline walkerbox

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
NullReferenceException when closing server
« on: August 25, 2015, 12:49:07 PM »
Hello,
I got NullReferenceException when I'm closing bluetooth server after receiving data. I'm using the newest 6.14.4.0 version
Could you please look at it/help me with it?

Code: [Select]
  at ATL.CSimpleStringT<wchar_t,0>.Empty(CSimpleStringT<wchar_t\,0>* )
   at ATL.CSimpleStringT<wchar_t,0>.SetString(CSimpleStringT<wchar_t\,0>* , Char* pszSrc, Int32 nLength)
   at wcl.wcl_int.CwclCustomServerConnection.InternalDoDisconnected(CwclCustomServerConnection* )
   at wcl.wcl_int.CwclCustomServerConnection.Disconnect(CwclCustomServerConnection* )
   at wcl.wcl_int.CwclCustomServerConnection.Close(CwclCustomServerConnection* )
   at wcl.wclServer.Close()

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3055
  • Karma: 1000
    • Soft Service Company
Re: NullReferenceException when closing server
« Reply #1 on: August 25, 2015, 01:31:14 PM »
Hello,

Check OnDisconnect event handler. It looks error appears there. Also make sure you call wclAPI.Unload when closing your app.

 

Sitemap 1 2 3 4 5 6 7 8 9