Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Assertion failure: problem occured in ANT_Device.shutdown()

Rank

Total Posts: 22

Joined 2015-01-28

PM

Hi,

I am working on C# Windows Application development(Visual studio 2010).

I am using single connect button to create ANT device instance(startUp() function) and channel 0 opening and its working.

i will click the disconnect button which will close channel 0. and shutdown the ANT device.at this stage i am getting error.
"Response poll thread did not join in timeout and was aborted. Was the application slow/stalling, or should we increase the join timeout."
details of error message you can see in error in shutdown attached image.

debugger shows screen in ANT_Managed_Library.ANT_Device.shutdown() function.
now i have increased timeout period from 500 to 1500 or 5000 .but, this problem is not solved and it is there after i click on disconnect.

please help me to understand this problem,and how to overcome it.


i have added another button to shutdown the device. and previous button for channel closing.

now the problem has gone.

so,is it we cannot close the channel and shutdown the device in single function code?

how can write the code where I will close the channel and shutdown the device in single event driven function such as button_click.

can anybody tell me about Assertion failure or Response poll thread working.

     

Image Attachments

error_in_shutdown.png

Click thumbnail to see full-size image

Rank

Total Posts: 2

Joined 2019-04-30

PM

Hi,
I commented out line 60 in ANT_Device.cs ("System.Diagnostics.Debug.Fail("Exception on shutdown: " + ex.Message);"). Is there a better solution?