QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
PhAB App initialization function doesn't return Pt_END |
Ref. No. |
QNX.000005409 |
Category(ies) |
Development |
Issue |
In an PhAB application, why is it not possible for the initialization function to return Pt_END or Pt_HALT and prevent the application from proceeding any further(i.e. just exit)?
|
Solution |
If you would like to exit from within the initialization function you will have to use the 'exit()' call rather than Pt_END or Pt_HALT. At the intialization function level, it is considered to be at a pre-Photon level and the return values from within this function are not looked at. If you wanted to use the Pt_END/Pt_HALT you would have to do this from a 'pre-realize' setup function. |
|