Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Creating single exe, problem

11 posts in Objects Last posting was on 2004-04-09 15:02:33.0Z
aSa Posted on 2004-03-30 12:56:12.0Z
From: "aSa" <robertas@dbit.lt>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Creating single exe, problem
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 193.219.2.146
X-Original-NNTP-Posting-Host: 193.219.2.146
Message-ID: <40696e6c$1@forums-1-dub>
Date: 30 Mar 2004 04:56:12 -0800
X-Trace: forums-1-dub 1080651372 193.219.2.146 (30 Mar 2004 04:56:12 -0800)
X-Original-Trace: 30 Mar 2004 04:56:12 -0800, 193.219.2.146
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7847
Article PK: 735118

we dynamicaly create objects that depends on what type of database and
server is used
but the problem is that when i generate single exe file the following error
is accurs.
no problen if i compile app with pbd's

Any ideas?


---------------------------
PowerBuilder Application Execution Error (R0030)
---------------------------
Application terminated.
Cannot find data type uo_error_db_MSSQL at line 8 in ue_get_db_imp_name
event of object uo_db_manager.
---------------------------
OK
---------------------------


Chris Pollach Posted on 2004-03-30 13:59:33.0Z
From: "Chris Pollach" <PollachC@SCC-CSC.gc.ca>
Newsgroups: sybase.public.powerbuilder.objects
References: <40696e6c$1@forums-1-dub>
Subject: Re: Creating single exe, problem
Lines: 34
Organization: The Supreme Court of Canada
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.47.227.135
X-Original-NNTP-Posting-Host: 209.47.227.135
Message-ID: <40697d45$1@forums-1-dub>
Date: 30 Mar 2004 05:59:33 -0800
X-Trace: forums-1-dub 1080655173 209.47.227.135 (30 Mar 2004 05:59:33 -0800)
X-Original-Trace: 30 Mar 2004 05:59:33 -0800, 209.47.227.135
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7848
Article PK: 735119

Yep ... never do that!!!

If you are dynamically doing anything in PB, make sure you compile to either
all PBD's or DLL's. Otherwise the linkage Editor will not include them in
the single EXE.

Regards ... Chris

"aSa" <robertas@dbit.lt> wrote in message news:40696e6c$1@forums-1-dub...
> we dynamicaly create objects that depends on what type of database and
> server is used
> but the problem is that when i generate single exe file the following
error
> is accurs.
> no problen if i compile app with pbd's
>
> Any ideas?
>
>
> ---------------------------
> PowerBuilder Application Execution Error (R0030)
> ---------------------------
> Application terminated.
> Cannot find data type uo_error_db_MSSQL at line 8 in ue_get_db_imp_name
> event of object uo_db_manager.
> ---------------------------
> OK
> ---------------------------
>
>


aSa Posted on 2004-03-30 14:18:42.0Z
From: "aSa" <robertas@dbit.lt>
Newsgroups: sybase.public.powerbuilder.objects
References: <40696e6c$1@forums-1-dub> <40697d45$1@forums-1-dub>
Subject: Re: Creating single exe, problem
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 193.219.2.146
X-Original-NNTP-Posting-Host: 193.219.2.146
Message-ID: <406981c2$1@forums-1-dub>
Date: 30 Mar 2004 06:18:42 -0800
X-Trace: forums-1-dub 1080656322 193.219.2.146 (30 Mar 2004 06:18:42 -0800)
X-Original-Trace: 30 Mar 2004 06:18:42 -0800, 193.219.2.146
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7849
Article PK: 735126

Sad but true

"Chris Pollach" <PollachC@SCC-CSC.gc.ca> wrote in message
news:40697d45$1@forums-1-dub...
>
> Yep ... never do that!!!
>
> If you are dynamically doing anything in PB, make sure you compile to
either
> all PBD's or DLL's. Otherwise the linkage Editor will not include them in
> the single EXE.
>
> Regards ... Chris
>
>
> "aSa" <robertas@dbit.lt> wrote in message news:40696e6c$1@forums-1-dub...
> > we dynamicaly create objects that depends on what type of database and
> > server is used
> > but the problem is that when i generate single exe file the following
> error
> > is accurs.
> > no problen if i compile app with pbd's
> >
> > Any ideas?
> >
> >
> > ---------------------------
> > PowerBuilder Application Execution Error (R0030)
> > ---------------------------
> > Application terminated.
> > Cannot find data type uo_error_db_MSSQL at line 8 in ue_get_db_imp_name
> > event of object uo_db_manager.
> > ---------------------------
> > OK
> > ---------------------------
> >
> >
>
>


Paul Horan[TeamSybase] Posted on 2004-04-09 15:02:33.0Z
From: "Paul Horan[TeamSybase]" <paulhATvcisolutionsDOTcom>
Newsgroups: sybase.public.powerbuilder.objects
References: <40696e6c$1@forums-1-dub> <40697d45$1@forums-1-dub> <406981c2$1@forums-1-dub>
Subject: Re: Creating single exe, problem
Lines: 54
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: vcimail.vcisolutions.com
X-Original-NNTP-Posting-Host: vcimail.vcisolutions.com
Message-ID: <4076acf9$1@forums-1-dub>
Date: 9 Apr 2004 07:02:33 -0800
X-Trace: forums-1-dub 1081519353 66.103.10.5 (9 Apr 2004 07:02:33 -0800)
X-Original-Trace: 9 Apr 2004 07:02:33 -0800, vcimail.vcisolutions.com
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7875
Article PK: 735147

There's a trick you can use to force this:
Create an NVO that has nothing in it but instance variable declarations of the classes that are dynamically
instantiated. As soon as PB sees these declarations, it will compile those classes into the .EXE file automatically.

This doesn't work for datawindows - you have to list those in a .PBR file.

--
Paul Horan[TeamSybase]

"aSa" <robertas@dbit.lt> wrote in message news:406981c2$1@forums-1-dub...
> Sad but true
>
>
> "Chris Pollach" <PollachC@SCC-CSC.gc.ca> wrote in message
> news:40697d45$1@forums-1-dub...
> >
> > Yep ... never do that!!!
> >
> > If you are dynamically doing anything in PB, make sure you compile to
> either
> > all PBD's or DLL's. Otherwise the linkage Editor will not include them in
> > the single EXE.
> >
> > Regards ... Chris
> >
> >
> > "aSa" <robertas@dbit.lt> wrote in message news:40696e6c$1@forums-1-dub...
> > > we dynamicaly create objects that depends on what type of database and
> > > server is used
> > > but the problem is that when i generate single exe file the following
> > error
> > > is accurs.
> > > no problen if i compile app with pbd's
> > >
> > > Any ideas?
> > >
> > >
> > > ---------------------------
> > > PowerBuilder Application Execution Error (R0030)
> > > ---------------------------
> > > Application terminated.
> > > Cannot find data type uo_error_db_MSSQL at line 8 in ue_get_db_imp_name
> > > event of object uo_db_manager.
> > > ---------------------------
> > > OK
> > > ---------------------------
> > >
> > >
> >
> >
>
>


Bruce Armstrong [TeamSybase] Posted on 2004-03-30 15:05:49.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Creating single exe, problem
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com>
References: <40696e6c$1@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
X-Original-Trace: 30 Mar 2004 07:05:45 -0800, 66-214-183-11.la-cbi.charterpipeline.net
Lines: 48
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 30 Mar 2004 07:05:46 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 30 Mar 2004 07:05:49 -0800
X-Trace: forums-1-dub 1080659149 10.22.108.75 (30 Mar 2004 07:05:49 -0800)
X-Original-Trace: 30 Mar 2004 07:05:49 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7850
Article PK: 735121

The compiler won't see the dynamically created objects, so it won't
include them in a single EXE (no PBD) compile. In order to get the
compiler to see them, you'll have to put in a dummy explicit reference
to them someplace, such as after a Return statement in the open event
of the application. The code will never run, but it will be enough
for the compiler to see them.

That, or simply compile to an EXE with PBDs.

On 30 Mar 2004 04:56:12 -0800, "aSa" <robertas@dbit.lt> wrote:

>we dynamicaly create objects that depends on what type of database and
>server is used
>but the problem is that when i generate single exe file the following error
>is accurs.
>no problen if i compile app with pbd's
>
>Any ideas?
>
>
>---------------------------
>PowerBuilder Application Execution Error (R0030)
>---------------------------
>Application terminated.
> Cannot find data type uo_error_db_MSSQL at line 8 in ue_get_db_imp_name
>event of object uo_db_manager.
>---------------------------
>OK
>---------------------------
>

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Sixth Annual Sybase Tools Seminar - April 19 - Minneapolis, MN
http://www.powerobjects.com/seminar/?source=newsgroups

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org


aSa Posted on 2004-03-31 18:37:17.0Z
From: "aSa" <robertas@dbit.lt>
Newsgroups: sybase.public.powerbuilder.objects
References: <40696e6c$1@forums-1-dub> <323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com>
Subject: Re: Creating single exe, problem
Lines: 59
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 193.219.2.146
Message-ID: <406b0fd9$1@forums-2-dub>
X-Original-Trace: 31 Mar 2004 10:37:13 -0800, 193.219.2.146
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 31 Mar 2004 10:37:14 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 31 Mar 2004 10:37:17 -0800
X-Trace: forums-1-dub 1080758237 10.22.108.75 (31 Mar 2004 10:37:17 -0800)
X-Original-Trace: 31 Mar 2004 10:37:17 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7854
Article PK: 735127

thanx

that sould solve the problem


"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>

wrote in message news:323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com...
> The compiler won't see the dynamically created objects, so it won't
> include them in a single EXE (no PBD) compile. In order to get the
> compiler to see them, you'll have to put in a dummy explicit reference
> to them someplace, such as after a Return statement in the open event
> of the application. The code will never run, but it will be enough
> for the compiler to see them.
>
> That, or simply compile to an EXE with PBDs.
>
> On 30 Mar 2004 04:56:12 -0800, "aSa" <robertas@dbit.lt> wrote:
>
> >we dynamicaly create objects that depends on what type of database and
> >server is used
> >but the problem is that when i generate single exe file the following
error
> >is accurs.
> >no problen if i compile app with pbd's
> >
> >Any ideas?
> >
> >
> >---------------------------
> >PowerBuilder Application Execution Error (R0030)
> >---------------------------
> >Application terminated.
> > Cannot find data type uo_error_db_MSSQL at line 8 in ue_get_db_imp_name
> >event of object uo_db_manager.
> >---------------------------
> >OK
> >---------------------------
> >
>
> Bruce Armstrong [TeamSybase]
> http://www.teamsybase.com
>
> Sixth Annual Sybase Tools Seminar - April 19 - Minneapolis, MN
> http://www.powerobjects.com/seminar/?source=newsgroups
>
> Two new books on developing with PowerBuilder
> http://www.pb9books.com?source=newsgroups
>
> Need code sample? Check out CodeXchange:
> http://www.codexchange.sybase.com
>
> ISUG Enhancement Requests
> http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
>
> Preach the gospel at all times. If necessary, use words. - Francis of
Assisi
> http://www.needhim.org


tigerchamp Posted on 2004-04-07 11:26:19.0Z
From: "tigerchamp" <tigerchen74@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <40696e6c$1@forums-1-dub> <323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com>
Subject: Re: Creating single exe, problem
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 219.238.200.40
X-Original-NNTP-Posting-Host: 219.238.200.40
Message-ID: <4073d74b@forums-1-dub>
Date: 7 Apr 2004 03:26:19 -0800
X-Trace: forums-1-dub 1081333579 219.238.200.40 (7 Apr 2004 03:26:19 -0800)
X-Original-Trace: 7 Apr 2004 03:26:19 -0800, 219.238.200.40
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7865
Article PK: 735138

You can compile such objects into EXE by list them in .pbr file, this is a
better way to do this ,i think.

"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
??????:323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com...

> The compiler won't see the dynamically created objects, so it won't
> include them in a single EXE (no PBD) compile. In order to get the
> compiler to see them, you'll have to put in a dummy explicit reference
> to them someplace, such as after a Return statement in the open event
> of the application. The code will never run, but it will be enough
> for the compiler to see them.
>
> That, or simply compile to an EXE with PBDs.
>
> On 30 Mar 2004 04:56:12 -0800, "aSa" <robertas@dbit.lt> wrote:
>
> >we dynamicaly create objects that depends on what type of database and
> >server is used
> >but the problem is that when i generate single exe file the following
error
> >is accurs.
> >no problen if i compile app with pbd's
> >
> >Any ideas?
> >
> >
> >---------------------------
> >PowerBuilder Application Execution Error (R0030)
> >---------------------------
> >Application terminated.
> > Cannot find data type uo_error_db_MSSQL at line 8 in ue_get_db_imp_name
> >event of object uo_db_manager.
> >---------------------------
> >OK
> >---------------------------
> >
>
> Bruce Armstrong [TeamSybase]
> http://www.teamsybase.com
>
> Sixth Annual Sybase Tools Seminar - April 19 - Minneapolis, MN
> http://www.powerobjects.com/seminar/?source=newsgroups
>
> Two new books on developing with PowerBuilder
> http://www.pb9books.com?source=newsgroups
>
> Need code sample? Check out CodeXchange:
> http://www.codexchange.sybase.com
>
> ISUG Enhancement Requests
> http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
>
> Preach the gospel at all times. If necessary, use words. - Francis of
Assisi
> http://www.needhim.org


Bruce Armstrong [TeamSybase] Posted on 2004-04-07 14:35:51.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Creating single exe, problem
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <3s08701bjbmpn7ep0ftik7nv9c4sqb8kn9@4ax.com>
References: <40696e6c$1@forums-1-dub> <323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com> <4073d74b@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
X-Original-NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
Date: 7 Apr 2004 06:35:51 -0800
X-Trace: forums-1-dub 1081344951 66.214.183.11 (7 Apr 2004 06:35:51 -0800)
X-Original-Trace: 7 Apr 2004 06:35:51 -0800, 66-214-183-11.la-cbi.charterpipeline.net
Lines: 82
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7866
Article PK: 735137

Actually, you can only compile datawindows and image files into an
executable using a PBR file. All other dynamically referenced object
types must either be explicitly referenced elsewhere, or PBDs created,
to ensure that they are available at runtime.

On 7 Apr 2004 03:26:19 -0800, "tigerchamp" <tigerchen74@hotmail.com>

wrote:

>You can compile such objects into EXE by list them in .pbr file, this is a
>better way to do this ,i think.
>
>"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
>??????:323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com...
>> The compiler won't see the dynamically created objects, so it won't
>> include them in a single EXE (no PBD) compile. In order to get the
>> compiler to see them, you'll have to put in a dummy explicit reference
>> to them someplace, such as after a Return statement in the open event
>> of the application. The code will never run, but it will be enough
>> for the compiler to see them.
>>
>> That, or simply compile to an EXE with PBDs.
>>
>> On 30 Mar 2004 04:56:12 -0800, "aSa" <robertas@dbit.lt> wrote:
>>
>> >we dynamicaly create objects that depends on what type of database and
>> >server is used
>> >but the problem is that when i generate single exe file the following
>error
>> >is accurs.
>> >no problen if i compile app with pbd's
>> >
>> >Any ideas?
>> >
>> >
>> >---------------------------
>> >PowerBuilder Application Execution Error (R0030)
>> >---------------------------
>> >Application terminated.
>> > Cannot find data type uo_error_db_MSSQL at line 8 in ue_get_db_imp_name
>> >event of object uo_db_manager.
>> >---------------------------
>> >OK
>> >---------------------------
>> >
>>
>> Bruce Armstrong [TeamSybase]
>> http://www.teamsybase.com
>>
>> Sixth Annual Sybase Tools Seminar - April 19 - Minneapolis, MN
>> http://www.powerobjects.com/seminar/?source=newsgroups
>>
>> Two new books on developing with PowerBuilder
>> http://www.pb9books.com?source=newsgroups
>>
>> Need code sample? Check out CodeXchange:
>> http://www.codexchange.sybase.com
>>
>> ISUG Enhancement Requests
>> http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
>>
>> Preach the gospel at all times. If necessary, use words. - Francis of
>Assisi
>> http://www.needhim.org
>

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Sixth Annual Sybase Tools Seminar - April 19 - Minneapolis, MN
http://www.powerobjects.com/seminar/?source=newsgroups

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org


aSa Posted on 2004-04-09 13:54:52.0Z
From: "aSa" <robertas@dbit.lt>
Newsgroups: sybase.public.powerbuilder.objects
References: <40696e6c$1@forums-1-dub> <323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com> <4073d74b@forums-1-dub> <3s08701bjbmpn7ep0ftik7nv9c4sqb8kn9@4ax.com>
Subject: Re: Creating single exe, problem
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 62.212.193.41
Message-ID: <40769b44$1@forums-2-dub>
X-Original-Trace: 9 Apr 2004 05:47:00 -0800, 62.212.193.41
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 9 Apr 2004 05:54:51 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 9 Apr 2004 05:54:52 -0800
X-Trace: forums-1-dub 1081515292 10.22.108.75 (9 Apr 2004 05:54:52 -0800)
X-Original-Trace: 9 Apr 2004 05:54:52 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7872
Article PK: 735149

and what about dataobjects?
how can i include dw in pbr (do i need to export dw and include as a file
resource)

i have created fn_dummy(returns none) with code:
RETURN

uo_object lo_object
.... ...

and there are no problems with dynamicaly created objects, thanx

but now i have a new problem for the same topic:
we have an object uo_datastore inherited from datastore ( it is included in
fn_dummy)
it has event ue_initialize with code:
...
This.DataObject = sp_dwo_name
// Set transaction object
li_result = This.SetTransObject(trp_tran_object)
return(li_result)

the problem is that SetTransObject returns -1 if compiled in single exe
everything is ok when compiled with pbd's

I also want to ask if application performence will encrease when compiled in
single exe ( exe file size 12,6Mb)

"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>

wrote in message news:3s08701bjbmpn7ep0ftik7nv9c4sqb8kn9@4ax.com...
> Actually, you can only compile datawindows and image files into an
> executable using a PBR file. All other dynamically referenced object
> types must either be explicitly referenced elsewhere, or PBDs created,
> to ensure that they are available at runtime.
>


Bruce Armstrong [TeamSybase] Posted on 2004-04-09 14:08:04.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Creating single exe, problem
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <st7d70t1va5ncd5bhl3s45jg91jv5mbuiq@4ax.com>
References: <40696e6c$1@forums-1-dub> <323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com> <4073d74b@forums-1-dub> <3s08701bjbmpn7ep0ftik7nv9c4sqb8kn9@4ax.com> <40769b44$1@forums-2-dub>
X-Newsreader: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
X-Original-NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
Date: 9 Apr 2004 06:08:04 -0800
X-Trace: forums-1-dub 1081516084 66.214.183.11 (9 Apr 2004 06:08:04 -0800)
X-Original-Trace: 9 Apr 2004 06:08:04 -0800, 66-214-183-11.la-cbi.charterpipeline.net
Lines: 66
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7873
Article PK: 735144

DataWindow objects you can include in the pbr file.

It really doens't matter what the size of the executable is.
PowerBuilder only loads the stub out of the executable and then treats
the rest as a PBD, loading objects out of it when needed.

But when your application is that large, what are you gaining by
compiling to a single executable? Compiling to an EXE with PBDs is a
lot easier, and I don't see any particular downside.

On 9 Apr 2004 05:54:52 -0800, "aSa" <robertas@dbit.lt> wrote:

>and what about dataobjects?
>how can i include dw in pbr (do i need to export dw and include as a file
>resource)
>
>i have created fn_dummy(returns none) with code:
>RETURN
>
>uo_object lo_object
>.... ...
>
>and there are no problems with dynamicaly created objects, thanx
>
>but now i have a new problem for the same topic:
>we have an object uo_datastore inherited from datastore ( it is included in
>fn_dummy)
>it has event ue_initialize with code:
>...
>This.DataObject = sp_dwo_name
>// Set transaction object
>li_result = This.SetTransObject(trp_tran_object)
>return(li_result)
>
>the problem is that SetTransObject returns -1 if compiled in single exe
>everything is ok when compiled with pbd's
>
>I also want to ask if application performence will encrease when compiled in
>single exe ( exe file size 12,6Mb)
>
>"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
>wrote in message news:3s08701bjbmpn7ep0ftik7nv9c4sqb8kn9@4ax.com...
>> Actually, you can only compile datawindows and image files into an
>> executable using a PBR file. All other dynamically referenced object
>> types must either be explicitly referenced elsewhere, or PBDs created,
>> to ensure that they are available at runtime.
>>
>

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Sixth Annual Sybase Tools Seminar - April 19 - Minneapolis, MN
http://www.powerobjects.com/seminar/?source=newsgroups

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org


aSa Posted on 2004-04-09 14:29:41.0Z
From: "aSa" <robertas@dbit.lt>
Newsgroups: sybase.public.powerbuilder.objects
References: <40696e6c$1@forums-1-dub> <323j60d4sk2gbkrupmguu8mj0405ttne8t@4ax.com> <4073d74b@forums-1-dub> <3s08701bjbmpn7ep0ftik7nv9c4sqb8kn9@4ax.com> <40769b44$1@forums-2-dub> <st7d70t1va5ncd5bhl3s45jg91jv5mbuiq@4ax.com>
Subject: Re: Creating single exe, problem
Lines: 9
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 193.219.2.146
X-Original-NNTP-Posting-Host: 193.219.2.146
Message-ID: <4076a545@forums-1-dub>
Date: 9 Apr 2004 06:29:41 -0800
X-Trace: forums-1-dub 1081517381 193.219.2.146 (9 Apr 2004 06:29:41 -0800)
X-Original-Trace: 9 Apr 2004 06:29:41 -0800, 193.219.2.146
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7874
Article PK: 735146

ok, thanx for information.

I think we will leave everything as is, too much problems with single
executible

I thought that all exe file is loaded to memory and it will encrease the
multilanguage performance.