lundi 23 mars 2015

What're the differences between NDK and Visual Studio?


There's a index_out_of_bounds issue in my C++ code.


I just found it by checking the C++ code line by line while I'm trying to solve a crash issue of my Android application. Fix the index_out_of_bounds issue fixed the crash issue. So I think index_out_of_bounds is the root cause.


But I'm very confused by the root cause. As I saw from the log, index_out_of_bounds happens a lot. But the app rarely crashed on most devices. I can only reproduce the crash on Nexus6. I don't know why...


Since the same code was used for my windows application, I wondered why this issue didn't happen on the Windows App. The fact is that, somebody did some index validation in the code of Windows App. So I assumed that Windows App crashed a lot so that someone fixed it this way.


Finally, my question comes out. Are there differences between Visual Studio and NDK on dealing this kind of error??




Aucun commentaire:

Enregistrer un commentaire