Ethernet Bearer Sample Code

Has anybody ran the Ethernet sample code in RTE mode?
It works fine in Target mode but does not want to run in RTE mode.
It crach when it gets to the function “read_reg” this is for the microchip memory reading (I think)
Has anybody else experianced this before?
If yes please tell me how to fix it as I do not want to build for target the whole time.