Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Yes, it's native allocation and TRANX is being passed to callback from native code in callback (NotificationHook > NotificationHook). And native library clears memory after the Callback method returns it complete flow (NotificationHook > NotificationHook). That's why it's little confusing for me, why this memory is being GCd? I have added more details around my callback hook. Please do let me know, if you need more details. Commented Jan 11, 2022 at 4:41
  • Highly appreciated your explanation. As per your inputs, I did some changes in my code. I called SendSrvcResponse method in different thread delayed by 50ms. By that Callback returns first and SendSrvcResponse after that. In that case application is not crashing. So looks like native library is doing some manipulation/changes in TRANX in SendSrvcResponse, which is causing the crash. Commented Jan 11, 2022 at 16:30
  • 1
    @GauravJeswani glad you solved it. Commented Jan 11, 2022 at 16:32
  • Yeah, hopefully looks like now near to the root cause of crash. Will work on solution now. Thanks for your help. Commented Jan 11, 2022 at 16:36