In august 2011 Rmteo told me:
Sure looks like you are not going to find the solution here any time soon.

Using from 2012 another compiler for pic24: MikroBasic. Many bugs, not a complete forum as this one... but working.