problem related to the using of direct mode in photon

Hi,

I am trying to use the photon Direct mode graphics (I dont want to use
widgets). but the the application crashes at a call to the api
“PdCreateDirectContext()”; I get a core dump. This is the first call I make
to the Pg library. Are there any other apis that need to be called before a
call to this api or some initialisation needs to be done.

This I am trying as per the pseudocode given in tha documentation for
programmers guide for photon.
The topic is “Raw Drawing and Animation” sub topic is “Direct Mode”

I a running the program on an X86 machine.
The version of QNX is 6.3

Regards,
Arun.

Bump.