.Net Target takes forever to build

I have a large app that I've migrated to PB .Net 12.1 build
6639.  It takes 1.5 + hours to build.

Every time I make a modification then attempt to run it
wants to build - which takes forever.  (2135 .cs files, 882
xaml files, 1128 dws)

Is there any setting that I'm missing that will reduce this
pain?

thanks
Deanne
0
Deanne
1/10/2011 5:38:33 PM
sybase.powerbuilder.net 284 articles. 0 followers. Follow

17 Replies
713 Views

Similar Articles

[PageSpeed] 51

Deanne,

Unfortunately, I don't know of a magic formula.  Even an 'incremental' 
build is time consuming.  There is a radical difference between the 
platforms and build mechanisms.

The only way around that I see is to refactor your code into autonomous 
assemblies that can be built separately.  No small task but one that 
will pay dividends at build time.  Watch my demo at 
http://www.youtube.com/watch?v=mYKI34xy6Ew to get an idea of the process

Bye Bye RAD, Hello Unit Testing

-- 
Yakov
eLearnIT LLC
Twitter: http://twitter.com/eLearnPB
Blog: http://yakovwerde.sys-con.com
Web Site: http://www.eLearnITOnline.com

On 1/10/2011 12:38 PM, Deanne wrote:
> I have a large app that I've migrated to PB .Net 12.1 build
> 6639.  It takes 1.5 + hours to build.
>
> Every time I make a modification then attempt to run it
> wants to build - which takes forever.  (2135 .cs files, 882
> xaml files, 1128 dws)
>
> Is there any setting that I'm missing that will reduce this
> pain?
>
> thanks
> Deanne

0
Yakov
1/10/2011 6:26:29 PM
Hi Deanne;

   There is hope on the horizon in PB 12.5 as PB will allow you to build one 
assembly per PBL (or combination of PBls). This means that PB.Net will only 
be required to recompile the PBL (assembly where you made the change). I 
would think that this will save an enormous amount of time compared to 
todays full build approach - especially for a large application.

  Now there is an EBF due out some time soon that may also address this by 
compiling a select set of assemblies per PBL. I have not seen either 
mechanism yet so I can not comment on how much better the compile times 
might be under either of these schemes compared to what you are encountering 
today.

Regards ... Chris
President: OSUG / STD Inc.
Blog: http://chrispollach.blogspot.com
PBDJ: http://chrispollach.sys-con.com
SourceForge: http://sourceforge.net/projects/stdfndclass

"Deanne" wrote in message news:4d2b4419.2c62.1681692777@sybase.com...

I have a large app that I've migrated to PB .Net 12.1 build
6639.  It takes 1.5 + hours to build.

Every time I make a modification then attempt to run it
wants to build - which takes forever.  (2135 .cs files, 882
xaml files, 1128 dws)

Is there any setting that I'm missing that will reduce this
pain?

thanks
Deanne 

0
Chris
1/11/2011 12:47:33 AM
Hi Deanne;

  Note: With Yakov's "assembly" suggestion you cannot use DataWindow 
pointers (or any PB objects for that matter) - so if your application passes 
DW Controls or DataStores around by reference, this approach could end up 
being quite a challenge to implement. You also cannot share a DB connection 
(aka pass SQLCA pointer around), etc. So if your application does many of 
these types of things - assemblies may not be an option for you.

Regards ... Chris
President: OSUG / STD Inc.
Blog: http://chrispollach.blogspot.com
PBDJ: http://chrispollach.sys-con.com
SourceForge: http://sourceforge.net/projects/stdfndclass

"Yakov Werde"  wrote in message news:4d2b4f55$1@forums-1-dub...

Deanne,

Unfortunately, I don't know of a magic formula.  Even an 'incremental'
build is time consuming.  There is a radical difference between the
platforms and build mechanisms.

The only way around that I see is to refactor your code into autonomous
assemblies that can be built separately.  No small task but one that
will pay dividends at build time.  Watch my demo at
http://www.youtube.com/watch?v=mYKI34xy6Ew to get an idea of the process

Bye Bye RAD, Hello Unit Testing

-- 
Yakov
eLearnIT LLC
Twitter: http://twitter.com/eLearnPB
Blog: http://yakovwerde.sys-con.com
Web Site: http://www.eLearnITOnline.com

On 1/10/2011 12:38 PM, Deanne wrote:
> I have a large app that I've migrated to PB .Net 12.1 build
> 6639.  It takes 1.5 + hours to build.
>
> Every time I make a modification then attempt to run it
> wants to build - which takes forever.  (2135 .cs files, 882
> xaml files, 1128 dws)
>
> Is there any setting that I'm missing that will reduce this
> pain?
>
> thanks
> Deanne 

0
Chris
1/11/2011 2:07:06 AM
Actually, Chris, with an ADO.NET driver it is possible to pass a 
connection around.  The transaction object has two additional methods 
GetADOConnection( ) and SetADOConnection(  ).  See the .NET Features 
Guide --> Database Management in PowerBuilder.NET --> Sharing an ADO.NET 
Database Connection for an illustration and explanation.

-- 
Yakov [TeamSybase]
eLearnIT LLC
Twitter: http://twitter.com/eLearnPB
Blog: http://yakovwerde.sys-con.com
Web Site: http://www.eLearnITOnline.com


On 1/10/2011 9:07 PM, Chris Pollach wrote:
> Hi Deanne;
>
> Note: With Yakov's "assembly" suggestion you cannot use DataWindow
> pointers (or any PB objects for that matter) - so if your application
> passes DW Controls or DataStores around by reference, this approach
> could end up being quite a challenge to implement. You also cannot share
> a DB connection (aka pass SQLCA pointer around), etc. So if your
> application does many of these types of things - assemblies may not be
> an option for you.
>
> Regards ... Chris
> President: OSUG / STD Inc.
> Blog: http://chrispollach.blogspot.com
> PBDJ: http://chrispollach.sys-con.com
> SourceForge: http://sourceforge.net/projects/stdfndclass
>
> "Yakov Werde" wrote in message news:4d2b4f55$1@forums-1-dub...
>
> Deanne,
>
> Unfortunately, I don't know of a magic formula. Even an 'incremental'
> build is time consuming. There is a radical difference between the
> platforms and build mechanisms.
>
> The only way around that I see is to refactor your code into autonomous
> assemblies that can be built separately. No small task but one that
> will pay dividends at build time. Watch my demo at
> http://www.youtube.com/watch?v=mYKI34xy6Ew to get an idea of the process
>
> Bye Bye RAD, Hello Unit Testing
>
0
Yakov
1/11/2011 3:06:16 AM
Thanks ... Good to know if your environment supports ADO.net for your DBMS.


"Yakov Werde [TeamSybase]"  wrote in message news:4d2bc928$1@forums-1-dub...


Actually, Chris, with an ADO.NET driver it is possible to pass a
connection around.  The transaction object has two additional methods
GetADOConnection( ) and SetADOConnection(  ).  See the .NET Features
Guide --> Database Management in PowerBuilder.NET --> Sharing an ADO.NET
Database Connection for an illustration and explanation.

-- 
Yakov [TeamSybase]
eLearnIT LLC
Twitter: http://twitter.com/eLearnPB
Blog: http://yakovwerde.sys-con.com
Web Site: http://www.eLearnITOnline.com


On 1/10/2011 9:07 PM, Chris Pollach wrote:
> Hi Deanne;
>
> Note: With Yakov's "assembly" suggestion you cannot use DataWindow
> pointers (or any PB objects for that matter) - so if your application
> passes DW Controls or DataStores around by reference, this approach
> could end up being quite a challenge to implement. You also cannot share
> a DB connection (aka pass SQLCA pointer around), etc. So if your
> application does many of these types of things - assemblies may not be
> an option for you.
>
> Regards ... Chris
> President: OSUG / STD Inc.
> Blog: http://chrispollach.blogspot.com
> PBDJ: http://chrispollach.sys-con.com
> SourceForge: http://sourceforge.net/projects/stdfndclass
>
> "Yakov Werde" wrote in message news:4d2b4f55$1@forums-1-dub...
>
> Deanne,
>
> Unfortunately, I don't know of a magic formula. Even an 'incremental'
> build is time consuming. There is a radical difference between the
> platforms and build mechanisms.
>
> The only way around that I see is to refactor your code into autonomous
> assemblies that can be built separately. No small task but one that
> will pay dividends at build time. Watch my demo at
> http://www.youtube.com/watch?v=mYKI34xy6Ew to get an idea of the process
>
> Bye Bye RAD, Hello Unit Testing
> 

0
Chris
1/11/2011 3:32:23 AM
On 1/10/2011 10:32 PM, Chris Pollach wrote:
> Thanks ... Good to know if your environment supports ADO.net for your DBMS.
>
>
> "Yakov Werde [TeamSybase]" wrote in message news:4d2bc928$1@forums-1-dub...
>
>
> Actually, Chris, with an ADO.NET driver it is possible to pass a
> connection around. The transaction object has two additional methods
> GetADOConnection( ) and SetADOConnection( ). See the .NET Features
> Guide --> Database Management in PowerBuilder.NET --> Sharing an ADO.NET
> Database Connection for an illustration and explanation.
>

Could you list those dbms' for which there are no ADO drivers

-- 
Yakov [TeamSybase]
eLearnIT LLC
Twitter: http://twitter.com/eLearnPB
Blog: http://yakovwerde.sys-con.com
Web Site: http://www.eLearnITOnline.com
0
Yakov
1/11/2011 1:50:18 PM
The last word is that an EBF due in February will give the ability to 
create separate assemblies by library similar to how PB Classic works. 
It will have the additional ability to group multiple libraries into one 
assembly.

On 1/10/2011 7:47 PM, Chris Pollach wrote:
> Hi Deanne;
>
>   There is hope on the horizon in PB 12.5 as PB will allow you to 
> build one assembly per PBL (or combination of PBls). This means that 
> PB.Net will only be required to recompile the PBL (assembly where you 
> made the change). I would think that this will save an enormous amount 
> of time compared to todays full build approach - especially for a 
> large application.
>
>  Now there is an EBF due out some time soon that may also address this 
> by compiling a select set of assemblies per PBL. I have not seen 
> either mechanism yet so I can not comment on how much better the 
> compile times might be under either of these schemes compared to what 
> you are encountering today.
>
> Regards ... Chris
> President: OSUG / STD Inc.
> Blog: http://chrispollach.blogspot.com
> PBDJ: http://chrispollach.sys-con.com
> SourceForge: http://sourceforge.net/projects/stdfndclass
>
> "Deanne" wrote in message news:4d2b4419.2c62.1681692777@sybase.com...
>
> I have a large app that I've migrated to PB .Net 12.1 build
> 6639.  It takes 1.5 + hours to build.
>
> Every time I make a modification then attempt to run it
> wants to build - which takes forever.  (2135 .cs files, 882
> xaml files, 1128 dws)
>
> Is there any setting that I'm missing that will reduce this
> pain?
>
> thanks
> Deanne
0
Roland
1/11/2011 3:01:00 PM
    Its not only whether there is an ADO.net driver for your DBMS & 
versions - but, more importantly if your technical environment and technical 
support people will allow the ADO.net connectivity to be installed on the 
end users desktop machines. In the Canadian government for example most 
departments client machines are locked down. Also, many DBA areas dictate 
the connectivity - for example in Oracle its pretty much OCI.  So it may 
boil down to local policies.

   Now, if you are converting from a native driver, OLE-DB, ODBC, etc to 
ADO.Net you would still have to a) change the way SQLCA is called; b) add 
extra ADO.Net function calls; c) tweak your SQL for ADO.net, d) check for 
performance problems, e) check/resolve DML & result set functionality issues 
and (of course) d) test the living daylights out of your application. So 
when you think about the entire process of switching to ADO.net - it should 
not be taken lightly IMHO

Just my $0.02 on the other side of the coin.



"Yakov Werde [TeamSybase]"  wrote in message news:4d2c601a$1@forums-1-dub...

On 1/10/2011 10:32 PM, Chris Pollach wrote:
> Thanks ... Good to know if your environment supports ADO.net for your 
> DBMS.
>
>
> "Yakov Werde [TeamSybase]" wrote in message 
> news:4d2bc928$1@forums-1-dub...
>
>
> Actually, Chris, with an ADO.NET driver it is possible to pass a
> connection around. The transaction object has two additional methods
> GetADOConnection( ) and SetADOConnection( ). See the .NET Features
> Guide --> Database Management in PowerBuilder.NET --> Sharing an ADO.NET
> Database Connection for an illustration and explanation.
>

Could you list those dbms' for which there are no ADO drivers

-- 
Yakov [TeamSybase]
eLearnIT LLC
Twitter: http://twitter.com/eLearnPB
Blog: http://yakovwerde.sys-con.com
Web Site: http://www.eLearnITOnline.com 

0
Chris
1/11/2011 3:13:04 PM
Hi Roland;

    Thanks for that tip - I had heard that as well.

    Now this brings up a question in my mind as when you build an assembly 
today and include this in another PB application you *cannot* pass PB object 
references between your application and the Assembly. Will the PBL/Assembly 
feature in the next EBF and the approach  proposed in PB 12.5 also be bound 
by this restriction (like we have today in PB 12.1)?

Regards ... Chris
President: OSUG / STD Inc.
Blog: http://chrispollach.blogspot.com
PBDJ: http://chrispollach.sys-con.com
SourceForge: http://sourceforge.net/projects/stdfndclass

"Roland Smith [TeamSybase]"  wrote in message 
news:4d2c70ac$1@forums-1-dub...

The last word is that an EBF due in February will give the ability to
create separate assemblies by library similar to how PB Classic works.
It will have the additional ability to group multiple libraries into one
assembly.

On 1/10/2011 7:47 PM, Chris Pollach wrote:
> Hi Deanne;
>
>   There is hope on the horizon in PB 12.5 as PB will allow you to build 
> one assembly per PBL (or combination of PBls). This means that PB.Net will 
> only be required to recompile the PBL (assembly where you made the 
> change). I would think that this will save an enormous amount of time 
> compared to todays full build approach - especially for a large 
> application.
>
>  Now there is an EBF due out some time soon that may also address this by 
> compiling a select set of assemblies per PBL. I have not seen either 
> mechanism yet so I can not comment on how much better the compile times 
> might be under either of these schemes compared to what you are 
> encountering today.
>
> Regards ... Chris
> President: OSUG / STD Inc.
> Blog: http://chrispollach.blogspot.com
> PBDJ: http://chrispollach.sys-con.com
> SourceForge: http://sourceforge.net/projects/stdfndclass
>
> "Deanne" wrote in message news:4d2b4419.2c62.1681692777@sybase.com...
>
> I have a large app that I've migrated to PB .Net 12.1 build
> 6639.  It takes 1.5 + hours to build.
>
> Every time I make a modification then attempt to run it
> wants to build - which takes forever.  (2135 .cs files, 882
> xaml files, 1128 dws)
>
> Is there any setting that I'm missing that will reduce this
> pain?
>
> thanks
> Deanne 

0
Chris
1/11/2011 3:25:48 PM
Yakov, Chris,
You have both raised some good points.  I have "inherited"
this code and it is obvious to me that the app has
"technical debt" associated with it.  New features have been
added, but obsoleted objects have not been removed; there is
no separation between the gui and the business layer etc.

Unfortunately, the nvos that exist have multiple functions
that use pb components as parameters; as well a significant
amount of functionality exists in global functions - so I'm
not sure how much "bang for the buck" I'd get moving stuff
the existing stuff to assemblies.

I have already indicated to management that they will soon
start to "pay the piper" for the  technical debt that exists
in the app.

Thanks for you input, and Yakov the video was great it
explained things beautifully.

Deanne

> On 1/10/2011 10:32 PM, Chris Pollach wrote:
> > Thanks ... Good to know if your environment supports
> ADO.net for your DBMS. >
> >
> > "Yakov Werde [TeamSybase]" wrote in message
> news:4d2bc928$1@forums-1-dub... >
> >
> > Actually, Chris, with an ADO.NET driver it is possible
> > to pass a connection around. The transaction object has
> > two additional methods GetADOConnection( ) and
> > SetADOConnection( ). See the .NET Features Guide -->
> Database Management in PowerBuilder.NET --> Sharing an
> > ADO.NET Database Connection for an illustration and
> explanation. >
>
> Could you list those dbms' for which there are no ADO
> drivers
>
> --
> Yakov [TeamSybase]
> eLearnIT LLC
> Twitter: http://twitter.com/eLearnPB
> Blog: http://yakovwerde.sys-con.com
> Web Site: http://www.eLearnITOnline.com
0
Deanne
1/11/2011 3:58:42 PM
Hi Deanne;

   You are most welcome ... and, I also feel your pain (been there done 
that).

Good luck with the application!

Regards ... Chris
President: OSUG / STD Inc.
Blog: http://chrispollach.blogspot.com
PBDJ: http://chrispollach.sys-con.com
SourceForge: http://sourceforge.net/projects/stdfndclass

"Deanne" wrote in message news:4d2c7e32.7675.1681692777@sybase.com...

Yakov, Chris,
You have both raised some good points.  I have "inherited"
this code and it is obvious to me that the app has
"technical debt" associated with it.  New features have been
added, but obsoleted objects have not been removed; there is
no separation between the gui and the business layer etc.

Unfortunately, the nvos that exist have multiple functions
that use pb components as parameters; as well a significant
amount of functionality exists in global functions - so I'm
not sure how much "bang for the buck" I'd get moving stuff
the existing stuff to assemblies.

I have already indicated to management that they will soon
start to "pay the piper" for the  technical debt that exists
in the app.

Thanks for you input, and Yakov the video was great it
explained things beautifully.

Deanne

> On 1/10/2011 10:32 PM, Chris Pollach wrote:
> > Thanks ... Good to know if your environment supports
> ADO.net for your DBMS. >
> >
> > "Yakov Werde [TeamSybase]" wrote in message
> news:4d2bc928$1@forums-1-dub... >
> >
> > Actually, Chris, with an ADO.NET driver it is possible
> > to pass a connection around. The transaction object has
> > two additional methods GetADOConnection( ) and
> > SetADOConnection( ). See the .NET Features Guide -->
> Database Management in PowerBuilder.NET --> Sharing an
> > ADO.NET Database Connection for an illustration and
> explanation. >
>
> Could you list those dbms' for which there are no ADO
> drivers
>
> --
> Yakov [TeamSybase]
> eLearnIT LLC
> Twitter: http://twitter.com/eLearnPB
> Blog: http://yakovwerde.sys-con.com
> Web Site: http://www.eLearnITOnline.com 

0
Chris
1/11/2011 4:02:33 PM
It is my understanding that the Assemblies automatically built by the 
12.1 EBF tool will NOT be CLS compliant. They will only be callable from 
PowerScript .NET application. In addition to providing automatic 
assembly generation this restriction will allow the passing of 
PowerScript types in method invocations.  The contents of these 
assemblies will NOT be callable from non PowerBuilder code.

Yakov

On 1/11/2011 10:25 AM, Chris Pollach wrote:
> Hi Roland;
>
> Thanks for that tip - I had heard that as well.
>
> Now this brings up a question in my mind as when you build an assembly
> today and include this in another PB application you *cannot* pass PB
> object references between your application and the Assembly. Will the
> PBL/Assembly feature in the next EBF and the approach proposed in PB
> 12.5 also be bound by this restriction (like we have today in PB 12.1)?
>
> Regards ... Chris
> President: OSUG / STD Inc.
> Blog: http://chrispollach.blogspot.com
> PBDJ: http://chrispollach.sys-con.com
> SourceForge: http://sourceforge.net/projects/stdfndclass
>
> "Roland Smith [TeamSybase]" wrote in message
> news:4d2c70ac$1@forums-1-dub...
>
> The last word is that an EBF due in February will give the ability to
> create separate assemblies by library similar to how PB Classic works.
> It will have the additional ability to group multiple libraries into one
> assembly.
>
> On 1/10/2011 7:47 PM, Chris Pollach wrote:
>> Hi Deanne;
>>
>> There is hope on the horizon in PB 12.5 as PB will allow you to build
>> one assembly per PBL (or combination of PBls). This means that PB.Net
>> will only be required to recompile the PBL (assembly where you made
>> the change). I would think that this will save an enormous amount of
>> time compared to todays full build approach - especially for a large
>> application.
>>
>> Now there is an EBF due out some time soon that may also address this
>> by compiling a select set of assemblies per PBL. I have not seen
>> either mechanism yet so I can not comment on how much better the
>> compile times might be under either of these schemes compared to what
>> you are encountering today.
>>
>> Regards ... Chris
>> President: OSUG / STD Inc.
>> Blog: http://chrispollach.blogspot.com
>> PBDJ: http://chrispollach.sys-con.com
>> SourceForge: http://sourceforge.net/projects/stdfndclass
>>
>> "Deanne" wrote in message news:4d2b4419.2c62.1681692777@sybase.com...
>>
>> I have a large app that I've migrated to PB .Net 12.1 build
>> 6639. It takes 1.5 + hours to build.
>>
>> Every time I make a modification then attempt to run it
>> wants to build - which takes forever. (2135 .cs files, 882
>> xaml files, 1128 dws)
>>
>> Is there any setting that I'm missing that will reduce this
>> pain?
>>
>> thanks
>> Deanne
>


0
Yakov
1/11/2011 4:18:26 PM
Hi Yakov;

   If they are not CLS compliant, will there be other limitations such as 
"marked as non-manageable code" for example?

Regards ... Chris



"Yakov Werde [TeamSybase]"  wrote in message news:4d2c82d2$1@forums-1-dub...


It is my understanding that the Assemblies automatically built by the
12.1 EBF tool will NOT be CLS compliant. They will only be callable from
PowerScript .NET application. In addition to providing automatic
assembly generation this restriction will allow the passing of
PowerScript types in method invocations.  The contents of these
assemblies will NOT be callable from non PowerBuilder code.

Yakov

On 1/11/2011 10:25 AM, Chris Pollach wrote:
> Hi Roland;
>
> Thanks for that tip - I had heard that as well.
>
> Now this brings up a question in my mind as when you build an assembly
> today and include this in another PB application you *cannot* pass PB
> object references between your application and the Assembly. Will the
> PBL/Assembly feature in the next EBF and the approach proposed in PB
> 12.5 also be bound by this restriction (like we have today in PB 12.1)?
>
> Regards ... Chris
> President: OSUG / STD Inc.
> Blog: http://chrispollach.blogspot.com
> PBDJ: http://chrispollach.sys-con.com
> SourceForge: http://sourceforge.net/projects/stdfndclass
>
> "Roland Smith [TeamSybase]" wrote in message
> news:4d2c70ac$1@forums-1-dub...
>
> The last word is that an EBF due in February will give the ability to
> create separate assemblies by library similar to how PB Classic works.
> It will have the additional ability to group multiple libraries into one
> assembly.
>
> On 1/10/2011 7:47 PM, Chris Pollach wrote:
>> Hi Deanne;
>>
>> There is hope on the horizon in PB 12.5 as PB will allow you to build
>> one assembly per PBL (or combination of PBls). This means that PB.Net
>> will only be required to recompile the PBL (assembly where you made
>> the change). I would think that this will save an enormous amount of
>> time compared to todays full build approach - especially for a large
>> application.
>>
>> Now there is an EBF due out some time soon that may also address this
>> by compiling a select set of assemblies per PBL. I have not seen
>> either mechanism yet so I can not comment on how much better the
>> compile times might be under either of these schemes compared to what
>> you are encountering today.
>>
>> Regards ... Chris
>> President: OSUG / STD Inc.
>> Blog: http://chrispollach.blogspot.com
>> PBDJ: http://chrispollach.sys-con.com
>> SourceForge: http://sourceforge.net/projects/stdfndclass
>>
>> "Deanne" wrote in message news:4d2b4419.2c62.1681692777@sybase.com...
>>
>> I have a large app that I've migrated to PB .Net 12.1 build
>> 6639. It takes 1.5 + hours to build.
>>
>> Every time I make a modification then attempt to run it
>> wants to build - which takes forever. (2135 .cs files, 882
>> xaml files, 1128 dws)
>>
>> Is there any setting that I'm missing that will reduce this
>> pain?
>>
>> thanks
>> Deanne
>

0
Chris
1/11/2011 4:29:14 PM
On 1/11/2011 11:29 AM, Chris Pollach wrote:
> marked as non-manageable code

If you mean Un-Managed code - Nothing generated by PB .NET is 
un-managed.  Everything is CIL and executes on the .NET runtime.

The difference is whether the types are 'private' or public. I.E. 
interoperable with code written in other .NET languages.  The rules of 
the CTS indicate that private language specific types are permitted

-- 
Yakov [TeamSybase]
eLearnIT LLC
Twitter: http://twitter.com/eLearnPB
Blog: http://yakovwerde.sys-con.com
Web Site: http://www.eLearnITOnline.com
0
Yakov
1/11/2011 5:37:00 PM
"Kool" ... thanks!

So its sounds like only the calling convections change then.





"Yakov Werde [TeamSybase]"  wrote in message news:4d2c953c$1@forums-1-dub...

On 1/11/2011 11:29 AM, Chris Pollach wrote:
> marked as non-manageable code

If you mean Un-Managed code - Nothing generated by PB .NET is
un-managed.  Everything is CIL and executes on the .NET runtime.

The difference is whether the types are 'private' or public. I.E.
interoperable with code written in other .NET languages.  The rules of
the CTS indicate that private language specific types are permitted

-- 
Yakov [TeamSybase]
eLearnIT LLC
Twitter: http://twitter.com/eLearnPB
Blog: http://yakovwerde.sys-con.com
Web Site: http://www.eLearnITOnline.com 

0
Chris
1/11/2011 5:50:36 PM
Deanne,

FYI Global functions are not intrinsically problematic.  They are 
wrapped in function 'classes' in the generated code.  All long as calls 
are limited to the application or assembly in which they are defined, 
all is well and good.  The issue is that they can't automatically be 
exposed to be called in an assembly interface.  If there is a need for 
that exposure then refactoring will be in order.

Importantly IHMO Refactoring should be cast as an investment for the 
future, not repaying the debts of the past

Yakov

On 1/11/2011 10:58 AM, Deanne wrote:
> Yakov, Chris,
> You have both raised some good points.  I have "inherited"
> this code and it is obvious to me that the app has
> "technical debt" associated with it.  New features have been
> added, but obsoleted objects have not been removed; there is
> no separation between the gui and the business layer etc.
>
> Unfortunately, the nvos that exist have multiple functions
> that use pb components as parameters; as well a significant
> amount of functionality exists in global functions - so I'm
> not sure how much "bang for the buck" I'd get moving stuff
> the existing stuff to assemblies.
>
> I have already indicated to management that they will soon
> start to "pay the piper" for the  technical debt that exists
> in the app.
>
> Thanks for you input, and Yakov the video was great it
> explained things beautifully.
>
> Deanne
>
>> On 1/10/2011 10:32 PM, Chris Pollach wrote:
>>> Thanks ... Good to know if your environment supports
>> ADO.net for your DBMS.>
>>>
>>> "Yakov Werde [TeamSybase]" wrote in message
>> news:4d2bc928$1@forums-1-dub...>
>>>
>>> Actually, Chris, with an ADO.NET driver it is possible
>>> to pass a connection around. The transaction object has
>>> two additional methods GetADOConnection( ) and
>>> SetADOConnection( ). See the .NET Features Guide -->
>> Database Management in PowerBuilder.NET -->  Sharing an
>>> ADO.NET Database Connection for an illustration and
>> explanation.>
>>
>> Could you list those dbms' for which there are no ADO
>> drivers
>>
>> --
>> Yakov [TeamSybase]
>> eLearnIT LLC
>> Twitter: http://twitter.com/eLearnPB
>> Blog: http://yakovwerde.sys-con.com
>> Web Site: http://www.eLearnITOnline.com


-- 
Yakov [TeamSybase]
eLearnIT LLC
Twitter: http://twitter.com/eLearnPB
Blog: http://yakovwerde.sys-con.com
Web Site: http://www.eLearnITOnline.com
0
Yakov
1/12/2011 1:51:29 AM
BTW: Why did you decide to migrate the application to .NET vs staying with 
PB 12 classic?


"Deanne" wrote in message news:4d2c7e32.7675.1681692777@sybase.com...

Yakov, Chris,
You have both raised some good points.  I have "inherited"
this code and it is obvious to me that the app has
"technical debt" associated with it.  New features have been
added, but obsoleted objects have not been removed; there is
no separation between the gui and the business layer etc.

Unfortunately, the nvos that exist have multiple functions
that use pb components as parameters; as well a significant
amount of functionality exists in global functions - so I'm
not sure how much "bang for the buck" I'd get moving stuff
the existing stuff to assemblies.

I have already indicated to management that they will soon
start to "pay the piper" for the  technical debt that exists
in the app.

Thanks for you input, and Yakov the video was great it
explained things beautifully.

Deanne

> On 1/10/2011 10:32 PM, Chris Pollach wrote:
> > Thanks ... Good to know if your environment supports
> ADO.net for your DBMS. >
> >
> > "Yakov Werde [TeamSybase]" wrote in message
> news:4d2bc928$1@forums-1-dub... >
> >
> > Actually, Chris, with an ADO.NET driver it is possible
> > to pass a connection around. The transaction object has
> > two additional methods GetADOConnection( ) and
> > SetADOConnection( ). See the .NET Features Guide -->
> Database Management in PowerBuilder.NET --> Sharing an
> > ADO.NET Database Connection for an illustration and
> explanation. >
>
> Could you list those dbms' for which there are no ADO
> drivers
>
> --
> Yakov [TeamSybase]
> eLearnIT LLC
> Twitter: http://twitter.com/eLearnPB
> Blog: http://yakovwerde.sys-con.com
> Web Site: http://www.eLearnITOnline.com 

0
Chris
1/12/2011 3:41:25 AM
Reply:

Similar Artilces:

ASP.NET build hangs forever in IDE (VB.NET)
Anyone had an experience where you try to build and ASP.NET web app, and it never finishes the build?The build icon that is shown in the status bar continues to animate.. but never finishes.If I close the IDE, restart IIS, delete dll file from bin if it exists (from previous good compile) then reopen sln and compile, it works.. but error will happen again after modifications are made to the app.This happens both by hitting F5 (run) or just from right clicking on the project and building it.Never creates a dll or pdb fileHappens on various different webapp (even new ones) not just on a specif...

What is the relation between Asp.net, C#.net ,ADO.net, SQL in web Building
Dear Developers Hi I am A beginner web developer I stared studying of development applications & languages and I finished HTML, JavaScript, IIS but I don't have a couch so I can't determine what i need to continue.I need to know the roles of ASP.net, C#.net, ADO.net, SQL in the web building process and how they work together and what exams I have to cross to be a certified web developerMy RegardsKhaled Elwakeel  Khaled , Welcome to the world of Web Programming, Web programming is different ball game ( HTTP Request, HTTP Response, HTTP handlers , MIME types, HTTP...

Net:Net:Net::LDAP::FAQ
------_=_NextPart_001_01C6429F.D89AA417 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Net::LDAP Net::LDAPS Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, ....) password? I don't like to write the secret password to the perl file. Best regards Barbara Wilbert ------_=_NextPart_001_01C6429F.D89AA417-- Wilbert Barbara (CI/OSI) * wrote: > Hello, > > Net::LDAP > Net::LDAPS > > Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, > ......

Building forums with ASP.net and VB.net
Hi Folks:I am desparetly looking for some help on how to build Forums using ASP.NET and VB.NET. Please help is need very urgently for my project at the college. Thank you very much in advance It's best to look at an already existing forum. Unfortunately, the only forums I know off hand are built in C#: Community Server and Yet Another Forum. I'm sure if you search Google, you'll find examples in VB.NET.Ryan OlshanASPInsider | Microsoft MVP, ASP.NEThttp://ryanolshan.comHow to ask a question Thank you very much for your answer. I have done an enormous search for some ...

Sending SMS using vb.net or C#.net using vb.net or c#.net
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

ASP.NET and .NET
Sorry if this is basic, but thats where i'm at. What is the difference between .NET and ASP.NET? Is ASP.NET an offshoot from .NET? I'm looking to do a training course and just need some facts here. I'm a newbie web developer. Thanks Dan At its simplest level .NET to a developer usually refers to the .NET Framework, which is a set of classes that you can extend to create your software applications. ASP.NET is a way of building a web based user interface for your application using the .NET Framework. Dan. Cheers Dan, some home work required for me i think. Thanks Dan...

ASP.NET VB.NET to VB.NET Executable
Forgive me if this is the wrong place to post. I could not find a more suitable section. I have several ASP.NET (using VB.NET) web pages that I have to convert to VB.NET executables. Can someone recommend a roadmap? Is this a huge task? Is it more manageable with the .NET platform? Thanks. the roadmap is to move as much code as possible out of the GUI into codebehind, and get GUI code out of code-behind. then move as much as possible into library assemblies and/or Webservices. then use the Visual Studio editor to drag and drop your new winapp gui, and easily plug in the back end....

Net Farmers net
Has anyone been able to access any of the tests at http://suicide.netfarmers.net ? I can get the default page but none of the tests appear to be operating over the last several weeks. -- CK I just tested and works as usual!!!Every session TCP_error,because my Shields_guard is intact<<G>> -- Regard: Joh@nnes� 1216771 Ont.Inc. "Nothing is more damaging to a new truth than an old error" "CK" <ckphalon@lascenltd.com> wrote in message news:9i45gg$1qa9$1@news.grc.com... : Has anyone been able to access any of the tests at : http://suicide...

net send in .net
Hi,  I am trying to execute net send comman in my vb.net code. But I am getting "win32 exception unhandled error". Please help me. My code is:Dim psi As New ProcessStartInfo() psi.UseShellExecute = False psi.FileName = "Net send" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "xxx.xxx.xx.xx test" Process.Start(psi)  Thanks in advance! Shwetha Tryu changing   psi.FileName = "Net send" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "xxx.xxx.xx.xx test&quo...

Differences between .net 1, .net 1.1, .net 2.0 and .net 3.0
Hi, This seems to be a common question, but i havent got an answer yet:(Can, any one please explain me the differences between these versions.If you keep your feet firmly on the ground, you'll have trouble putting on your pants! Have a look into this links http://en.wikipedia.org/wiki/.NET_Framework http://blogs.msdn.com/mohammadakif/archive/2006/12/03/net-3-0-different-versions-of-the-net-framework.aspx http://www.codeproject.com/aspnet/ComparisonASP1xASP20.aspAshok Rajawww.iGold.inDon't forget to click "Mark as Answer" on the post that helped you. This credits that m...

converting to vb.net from c#.net authorize.net
authorize.net offered me some sample code when I signed up with them the only problem is the sample code is in c#.net but my page that they type all of their credit card into is vb.net <code><%@ Import Namespace="System.Net" %> <%@ Import Namespace="System.IO" %> <script language="C#" runat="server"> void Page_Load(Object Src, EventArgs E) { myPage.Text = readHtmlPage("https://certification.authorize.net/gateway/transact.dll"); } private String readHtmlPage(string url) { ...

To .NET or not .NET, that is the question
I'm running WinXP pro 32-bit, meaning I've got the version 1-dot-something of .NET that XP came with. I've been looking for various softwares, and more and more often come across .NET version 2 being prerequisite. No urgency for me re. my questions to this group - so far I have just decided to hit the red X on those download pages - but the desire for this newer version of .NET seems to be growing for me. Firstly, according to my (limited) research, newer .NET versions are inclusive of the previous ones, and the current version seems to be 3.5. So if I go for i...

Some plan for a .NET Pocket Powerbuilder? And for a .NET Compact DataWindow?
Jim O'Neal of Team Sybase respond to my request on DW.Net newsgroup that there is no plan for DataWindow.Net for Compact .Net Framework. Datawindow.Net is still unmanaged code and .Net Compact Framwork does not support unmanaged code. PocketPowerBuilder is for Pocket PC. I woner why would I care for its .Net version! Datawindow (not DW.Net) of Pocket PB works on Pocket PC with Pocket PowerBuilder. Regards. ...

Building Powerbuilder .Net applications
In Powerbuilder 11.1 our build was done using Powergen. Now we converted our Powerbuilder 11.1 code to Powerbuilder 12 .Net. What can we use to build in this version apart from creating a powerbuilder project? Is there a more efficient way because we have over 50 libraries? Thanks. The upcoming 12.2 is supposed to have the ability to build separate assemblies for libraries. I'm not sure when that will be released. On 12/30/2010 9:37 AM, Richard Ola wrote: > In Powerbuilder 11.1 our build was done using Powergen. Now > we converted our Powerbuilder 11.1 code to Powerbuild...

Web resources about - .Net Target takes forever to build - sybase.powerbuilder.net

Ben Carson's Syria Solution: Use The Money Spent On 'Halloween Candy' To Pay For Refugee Camps
GOP presidential hopeful Ben Carson argued over the weekend that Syrians would rather stay in refugee camps than be resettled in other countries ...

What Did Cards Against Humanity Do With Their Black Friday Profits?
On Black Friday, Cards Against Humanity created a campaign where they sold absolutely nothing for $5. Cards Against Humanity is company that ...

Deadspin Up All Night: Bitch You Better Off Voting For Donald Trump
Thank you for your continued support of Deadspin. As you were. Read more...

Turkey Says It Will Return Shot Down Pilot’s Body Home To Russia
On Sunday, Turkey’s Prime Minister Ahmet Davutoglu said that Turkey has taken the body of a Russian warplane pilot to be delivered back to Russia. ...

Sheriff's deputies rescue newborn found buried near river
WKRC TV Cincinnati Sheriff's deputies rescue newborn found buried near river WKRC TV Cincinnati This Friday, Nov. 27, 2015 photo, provided ...

Turkey To Help Stem Flow of Refugee Migrants to Europe
With the ongoing flow of refugee migrants moving from Syria through Turkey and into European Union countries, the EU has asked Turkey to help ...

Police Union Boss Cited for Access to Pope During NYC Visit
Discipline sought for police union boss who stood near pope during NYC visit without clearance

New Photos Of Princess Charlotte Released By William And Kate As Thank You To Media For Allowing The ...
New photos of Princess Charlotte, the fourth in line to the British throne, have been released by Kensington Palace as a “thank you” to the media ...

Amazon Unveils Footage of Massive Drone That Will One Day Deliver Your Packages: WATCH
Two years ago, Amazon founder Jeff Bezos appeared on 60 Minutes to show off what he said would be the future of package delivery: a drone that ...

A Message For Our Republican Amigos Christie? Trumpf? There's A Better Solution To Your Anguish
Artist Darkblack foresees a Jersey Bounce in New Hampshire The funnest news Saturday night was the announcement that New Hampshire's Union Leader ...

Resources last updated: 11/30/2015 1:50:13 AM