Default RIL .net wrapper - extremely weird issue

Hi all,

I have done up a RIL wrapper in .NET for the purpose of extracting CELL ID etc. It works fine, callbacks and stuff like that. The idea is to get a .NET library to work on all devices without the need to extract RIL.LIB from each individual device.

It is reporting normal events like incoming calls/sms etc. However, it does not report 0x40000009 notifications, 0x40000009 translates to CELL ID info.

The same code when ported over to eVC++ works just fine. I have done days of tracing and can now describe the problem clearly.

CASE 1: Working solution
------------------------
For things to work properly, inside .NET, I must p/invoke a eVC function that calls all these ***together***:
1. RIL_Initialize
2. RIL_ATCommandLogging
3. RIL_DevSpecific(24)
4. RIL_DevSpecific(26)
If I do this, the .NET callback works fine and receives 0x40000009 notifications.

CASE 2: Non-working solution
-----------------------------
If inside .NET, I p/invoke a eVC function that calls only
1. RIL_Initialize
then p/invoke another eVC function that calls
1. RIL_ATCommandLogging
2. RIL_DevSpecific(24)
3. RIL_DevSpecific(26)
The .NET callback can receive calls/sms notifcations, but not 0x40000009!!!

CASE 2: Non-working solution
-----------------------------
Inside .NET, I p/invoke these functions directly from RIL.DLL
1. RIL_Initialize
2. RIL_ATCommandLogging
3. RIL_DevSpecific(24)
4. RIL_DevSpecific(26)
The .NET callback can receive calls/sms notifcations, but not 0x40000009!!!

In all cases, RIL_ATCommandLogging and RIL_DevSpecific do not return errors, callbacks can return many notifications, even 0x40000005, but simply just not 0x40000009. And yes, RIL_Initialize has been called with 0xffffffff notification class.

I suspect that RIL_DevSpecific(26) is not communicating with RIL, but yet, it returns no errors. Any one faced this before?

Regards,
wilco_sg