Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Undefined variable: gnv_app (PB & PFC application from PB 6 to PB 11.)

531 views
Skip to first unread message

Paula

unread,
Mar 31, 2009, 3:39:56 AM3/31/09
to
Hi All,
Please tell how i can resolve below problem :

I am trying to migrate PB & PFC application from PB 6 to PB 11.
I am getting below error message, I tried so many combination to put pbls
but still I am getting same error, even the object and all the pbls are
present see below list

pbl list :


\pfeapsrv.pbl;

\pfedwsrv.pbl;

\pfemain.pbl;

\pfeutil.pbl;

\pfewnsrv.pbl;

\pfcapsrv.pbl;

\PFCDWSRV.PBL;

\pfcmain.pbl;

\pfcutil.pbl;

\PFCWNSRV.PBL;

\pfcapp.pbl;

\pfcold.pbl;

\pfebarcode.pbl;

\pfertf.pbl;

\pfetempl.pbl;

etc.....


---------------------------------------Error message what I am
getting-----------------------

pfeapsrv.pbl(n_cst_appmanager).n_cst_appmanager.of_getdatabase.3: Error
C0015: Undefined variable: gnv_app

pfcmain.pbl(pfc_w_master).pfc_w_master.pfc_help.37: Error C0015: Undefined
variable: gnv_app

pfcmain.pbl(pfc_w_master).pfc_w_master.pfc_help.50: Error C0015: Undefined
variable: gnv_app

pfcmain.pbl(pfc_w_master).pfc_w_master.pfc_help.50: Error C0003: Condition
for if statement must be a boolean.

pfemain.pbl(w_master).w_master.pfc_preopen.16: Error C0015: Undefined
variable: gnv_app

pfemain.pbl(w_master).w_master.pfc_preopen.17: Error C0015: Undefined
variable: gnv_app

pfemain.pbl(w_master).w_master.pfc_preopen.18: Error C0015: Undefined
variable: gnv_app

pfemain.pbl(w_master).w_master.pfc_preopen.18: Error C0003: Condition for if
statement must be a boolean.

pfcmain.pbl(pfc_u_cb).pfc_u_cb.getfocus.30: Error C0015: Undefined variable:
gnv_app

pfcmain.pbl(pfc_u_cb).pfc_u_cb.getfocus.30: Error C0003: Condition for if
statement must be a boolean.

pfcmain.pbl(pfc_u_cb).pfc_u_cb.getfocus.33: Error C0003: Condition for if
statement must be a boolean.

pfcmain.pbl(pfc_u_cb).pfc_u_cb.getfocus.36: Error C0031: Syntax error

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.63: Error C0015: Undefined
variable: gnv_app

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.64: Error C0015: Undefined
variable: gnv_app

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.65: Error C0015: Undefined
variable: gnv_app

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.65: Error C0003: Condition
for if statement must be a boolean.

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.72: Error C0020: Function
with no return value used in expression

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.73: Error C0020: Function
with no return value used in expression

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.74: Error C0015: Undefined
variable: gnv_app

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.74: Error C0003: Condition
for if statement must be a boolean.

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.75: Error C0003: Condition
for if statement must be a boolean.

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.80: Error C0031: Syntax error

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.81: Error C0020: Function
with no return value used in expression

pfeapsrv.pbl(ala_w_dberror).ala_w_dberror.open.82: Error C0031: Syntax error

pfeapsrv.pbl(ala_n_cst_kbtimer).ala_n_cst_kbtimer.ala_kbtimer.8: Error
C0015: Undefined variable: gnv_app

pfeapsrv.pbl(ala_n_cst_kbtimer).ala_n_cst_kbtimer.ala_kbtimer.9: Error
C0015: Undefined variable: gnv_app

pfeapsrv.pbl(ala_n_cst_dberror).ala_n_cst_dberror.ala_of_dberror.16: Error
C0015: Undefined variable: gnv_app

pfeapsrv.pbl(n_cst_platformwin32).n_cst_platformwin32.of_getprintername.24:
Error C0015: Undefined variable: gnv_app

pfeapsrv.pbl(n_cst_platformwin32).n_cst_platformwin32.of_getprintername.24:
Error C0003: Condition for if statement must be a boolean.

pfeapsrv.pbl(n_cst_security).n_cst_security.of_alaco_getdbuserid.28: Error
C0015: Undefined variable: gnv_app

pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvsrv_levelsource.of_update.44:
Error C0015: Undefined variable: gnv_app

pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvsrv_levelsource.of_update.44:
Error C0003: Condition for if statement must be a boolean.

pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvsrv_levelsource.of_update.45:
Error C0003: Condition for if statement must be a boolean.

pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvsrv_levelsource.of_update.56:
Error C0003: Condition for if statement must be a boolean.

pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvsrv_levelsource.of_update.67:
Error C0015: Undefined variable: gnv_app

pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvsrv_levelsource.of_update.69:
Error C0031: Syntax error


Terry Voth [TeamSybase]

unread,
Mar 31, 2009, 8:36:54 AM3/31/09
to
Somewhere along the way, instead of *migrating* your application
object, you've created a new one, and in doing so lost your global
variable declarations. Every PFC application needs a global variable
named gnv_app, of type n_cst_appmanager or of one of its descendants.
There are PFC docs and examples to show you how to fix it, but instead
I'd go back and concentrate on finding the missing application object;
gnv_app may not be the only thing you've lost.

Keep in mind that in the File / New dialog, you want to select Target
/ Existing Application.

Good luck,

Terry and Sequel the techno-kitten

*********************************
Build your vocabulary while feeding the hungry
http://www.freerice.com
*********************************
Newsgroup User Manual
=====================
TeamSybase <> Sybase employee
Forums = Peer-to-peer
Forums <> Communication with Sybase
IsNull (AnswerTo (Posting)) can return TRUE
Forums.Moderated = TRUE, so behave or be deleted
*********************************

Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a free PowerBuilder Developer's Toolkit.
Version 4.0.4 now available at the Sandbox
PB Futures updated June 25/2008
See the PB Troubleshooting & Migration Guides at the Sandbox
^ ^
o o
=*=

Paula

unread,
Mar 31, 2009, 2:24:06 PM3/31/09
to
I tried in same was with same "Existing Application" then gave application
then also i am facing same problem
it is showing missing so many other objects and even with some other
application, same thing i did and able to resolve it
but here i am facing below problem

any idea or suggetions to resolve this problem ?


"Terry Voth [TeamSybase]" <seq...@techno-kitten.com> wrote in message
news:i934t4drql0j8ik87...@4ax.com...

Terry Voth [TeamSybase]

unread,
Mar 31, 2009, 7:30:35 PM3/31/09
to
I'm not sure what to tell you, other than it looks like a problem
selecting either the application object or the list of PBLs. An
undefined gnv_app is telling you one of two things:

- The global variable declaration for gnv_app is missing (possibly
because the wrong application object was selected).

- The user object type that is used for gnv_app didn't compile, so the
global variable declaration failed (possibly because the wrong list of
PBLs was selected).

I'm a little disturbed to see a reference to gnv_app in
n_cst_appmanager (since gnv_app is either n_cst_appmanager or a
descendant of n_cst_appmanager, and there should only be one instance
of this per application, a reference to gnv_app in calling the
function shouldn't be necessary), but I'm not picturing this causing
the problem. That would be why I'd be leaning towards believing
there's an absence of a global variable declaration.

I'd either use Edit Source or PBL Peeper (see below) to look at the
source of the application object and make sure that gnv_app is
declared.

You can also use PBL Peeper to compare your library lists. On the PBLs
page, use "PowerBuilder x.x Apps" to select your application or
target, and go to the Lists \ Containers page and export the list
(File \ Save As) for each app. Then, you can use an external tool to
compare the lists.

Good luck,

Terry and Sequel the techno-kitten

Pietje Puk

unread,
May 9, 2009, 8:27:41 AM5/9/09
to
Whit I notice, is that there are only errors in pfc / pfe libraries. Are
there any project libraries or are you simply trying to migrate the
framework?

If that's the case you should still create an extra pbl with an
application object set up according to pfc documentation.

Terry Voth [TeamSybase] schreef:

pulsa...@yahoo.co.uk

unread,
Aug 7, 2009, 12:44:16 AM8/7/09
to
> btimer.8: Error >>>C0015: Undefined variable: gnv_app
> >>>
> >>>pfeapsrv.pbl(ala_n_cst_kbtimer).ala_n_cst_kbtimer.ala_k
> btimer.9: Error >>>C0015: Undefined variable: gnv_app
> >>>
> >>>pfeapsrv.pbl(ala_n_cst_dberror).ala_n_cst_dberror.ala_o
> f_dberror.16: Error >>>C0015: Undefined variable: gnv_app
> >>>
> >>>pfeapsrv.pbl(n_cst_platformwin32).n_cst_platformwin32.o
> f_getprintername.24: >>>Error C0015: Undefined variable:
> gnv_app >>>
> >>>pfeapsrv.pbl(n_cst_platformwin32).n_cst_platformwin32.o
> f_getprintername.24: >>>Error C0003: Condition for if

> statement must be a boolean. >>>
> >>>pfeapsrv.pbl(n_cst_security).n_cst_security.of_alaco_ge
> tdbuserid.28: Error >>>C0015: Undefined variable: gnv_app
> >>>
> >>>pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvs
> rv_levelsource.of_update.44: >>>Error C0015: Undefined
> variable: gnv_app >>>
> >>>pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvs
> rv_levelsource.of_update.44: >>>Error C0003: Condition for

> if statement must be a boolean. >>>
> >>>pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvs
> rv_levelsource.of_update.45: >>>Error C0003: Condition for

> if statement must be a boolean. >>>
> >>>pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvs
> rv_levelsource.of_update.56: >>>Error C0003: Condition for

> if statement must be a boolean. >>>
> >>>pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvs
> rv_levelsource.of_update.67: >>>Error C0015: Undefined
> variable: gnv_app >>>
> >>>pfcapsrv.pbl(pfc_n_cst_tvsrv_levelsource).pfc_n_cst_tvs
> rv_levelsource.of_update.69: >>>Error C0031: Syntax error

>
> *********************************
> Build your vocabulary while feeding the hungry
> http://www.freerice.com
> *********************************
> Newsgroup User Manual
> =====================
> TeamSybase <> Sybase employee
> Forums = Peer-to-peer
> Forums <> Communication with Sybase
> IsNull (AnswerTo (Posting)) can return TRUE
> Forums.Moderated = TRUE, so behave or be deleted
> *********************************
>
> Sequel's Sandbox: http://www.techno-kitten.com
> Home of PBL Peeper, a free PowerBuilder Developer's
> Toolkit. Version 4.0.4 now available at the Sandbox
> PB Futures updated June 25/2008
> See the PB Troubleshooting & Migration Guides at the
> Sandbox ^ ^
> o o
> =*=

It am also facing the same problem when i tried to migrate
an application from PB 8.5 to PB 11.0. Could someone guide
the steps that needs to be followed to migrate the
application.

Terry Voth [TeamSybase]

unread,
Aug 7, 2009, 11:38:11 AM8/7/09
to
Well, there's a Migration Guide at my site (see below), which is what
I'd do first. Unless you're using of_FindWindow(), upgrading PFC is
entirely optional unless you're after bug fixes. I'm an advocate of
migrating first, then upgrading the PFC libraries if desired.

As we mentioned in this thread, if you're getting one of these massive
lists that includes "invalid gnv_app" over and over again, you've
probably got one or two base problems to solve, and the rest will fall
out when these are fixed. There's no silver bullet; you just have to
root through the issues until you find the base causes.

Good luck,

Terry and Sequel the techno-kitten

0 new messages