- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CCyUSBDevice::Close destroys the device state and should not be called twice. IsOpen function call in the destructor should prevent calling Close again.
The problem appears when the device is a local variable on the stack in a function. In such case the device destructor is called at the end of the function, but function Close can be called in the middle of the function for some reason.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Cypress toolchain does not (yet) support C++. The GCC does not have got destructors, so the error you discovered seems to have been induced by switching form C to C++
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are right. The conversion from C to C++ was done by Cypress team.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for quick reply. How can I get support for this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How was the contact made to have Cypress do the conversion? Is there someone you can contact?? A name in the source??
If that channel doesn't work, file a "MyCase" (At top of this page; Support & Community -> Technical Support -> Create a MyCase)
Bob