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

walkerbox

  • Guest
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: 3675
  • Karma: 1000
    • Wireless Communication Libraries
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