Hi
I’m having a some problems in my application.
I have a non photon application, connecting to photon with PtInit()
At a point in the application, i load a library and call a function from
it, if i understand right, i should not be forced to reinit my
connection to Photon…
and sure, that works fine, i’m able to use a Ph* func and it give
expected results, Wnen i’m trying to use PtConnectFindName, it segfault,
as it normally do when you havn’t done PtInit… i tried PtInit again in
the func from the runtime lib, and sure, no segfault from
PtConnectFindName now, but it return NULL…
I have tried using this func as a standalone test program, and then it
works great.
Anyone have any ideas? any suggestions or ideas is appriciated.
Thanks alot
/Johan
Hi Johan,
Would it be possible to upload a small test case for this application
to the newsgroup that demonstrates the problem ??
Maybe less than 100 lines of code in two .c files and a
makefile… 
Regards
Brenda
Johan Bj?rk <phearbear@qnxstart.com> wrote:
Hi
I’m having a some problems in my application.
I have a non photon application, connecting to photon with PtInit()
At a point in the application, i load a library and call a function from
it, if i understand right, i should not be forced to reinit my
connection to Photon…
and sure, that works fine, i’m able to use a Ph* func and it give
expected results, Wnen i’m trying to use PtConnectFindName, it segfault,
as it normally do when you havn’t done PtInit… i tried PtInit again in
the func from the runtime lib, and sure, no segfault from
PtConnectFindName now, but it return NULL…
I have tried using this func as a standalone test program, and then it
works great.
Anyone have any ideas? any suggestions or ideas is appriciated.
Thanks alot
/Johan
Gui Group wrote:
Hi Johan,
Would it be possible to upload a small test case for this application
to the newsgroup that demonstrates the problem ??
Maybe less than 100 lines of code in two .c files and a
makefile… > 
Regards
Brenda
Johan Bj?rk <> phearbear@qnxstart.com> > wrote:
Hi
I’m having a some problems in my application.
I have a non photon application, connecting to photon with PtInit()
At a point in the application, i load a library and call a function from
it, if i understand right, i should not be forced to reinit my
connection to Photon…
and sure, that works fine, i’m able to use a Ph* func and it give
expected results, Wnen i’m trying to use PtConnectFindName, it segfault,
as it normally do when you havn’t done PtInit… i tried PtInit again in
the func from the runtime lib, and sure, no segfault from
PtConnectFindName now, but it return NULL…
I have tried using this func as a standalone test program, and then it
works great.
Anyone have any ideas? any suggestions or ideas is appriciated.
Thanks alot
/Johan
Hi again, sorry for the delay in answering.
I looked at this again, tried to narrow down the problem so it would fit
in less then 100 lines
well , I discoverd the runtime dll is not the
problem, but since i’m using Name_attach() in my code… i searched for
this in the helpviewer and discoverd it was a known problem, or whatever
to call it…
Thanks alot for the help 
/Johan