Unless you have that code being called by a very tight loop, it, in of itself, will not cause that error. Suggest you expand the search scope to include the code that references that section.
This proc is called 4 times and not in a loop. It crashes at the first call. I made lot of tests and I always got ONLY the first line of log (Cmd4a) so I cannot understand why it could be somewhere else.
If it's not in a loop, then I'd look to see how many iterations of the app you have running at the same time - may want to consider changing it to a single-threaded model.
I'm new in developing a driver. The app was already existing, I just created a new driver for this app. It was working fine on MY devices. But now I'm trying to modify it for another user so it's difficult for me to test it.
Sorry, I don't know how to see if it's single-threaded.
Is this not the same issue you posted about in another topic?
I would just add another post there if you need more help rather than making duplicate posts, per the community guidelines. Now there are two topics tracking the issue. Perhaps they could be merged...
You can move your existing post (by editing the title--same place). While you're reading, check out the Community Guidelines and the note about not cross-posting:
I also wouldn't worry too much about what category you post in. Unlike traditional forum software, Discourse (what this runs on) makes it easy to see posts in any category, and most staff and and many users look all over, but I'd still make an effort to put it where it fits best. Coding questions only really seem appropriate for the "Developers" category, where yours was already moved by the time you replied.