This Question is Answered

5 "helpful" answers available (2 pts)
14 Replies Last post: Mar 8, 2010 10:09 AM by Dale Hubbuck  
Dale Hubbuck Newbie 8 posts since
Sep 11, 2007
Currently Being Moderated

Feb 4, 2010 5:21 AM

Playing with 10.2B eval and OOOERA classes. Is the code buggy or is it me?

Hi

I have started looking at the new 10.2B version of progress and like the new features of architect and the Gui for .NET.

 

One of the things we wish to do while modernising our app is to go to an appserver model and try and followsome of the OERA guidelines.

 

I have a sample screen which should fetch a list of customers via the OERA classes using fetchdata method.

 

This works for one request only.  If I try to use fetchdata again the system crashes anybody had these problems?

 

Sample code

 

contextCustomer =

 

NEW base.cltdatacontext().

Mycustomer =

NEW samples.pres.sacustomer().

 

hdsContext = contextCustomer:dsContext.

 

 

 

contextCustomer:setFilter(

 

'ttCustomer.name','begins','A').

 

 

/* Mycustomer:fetchData(OUTPUT DATASET dsCustomer BY-REFERENCE,

INPUT-OUTPUT DATASET-HANDLE hdsContext BY-REFERENCE). */

 

 

 

 

bsCustomer:

 

handle = DATASET dsCustomer:Handle.

GridCustomer:Datasource = BScustomer.

 

contextSalesArea =

NEW base.cltdatacontext().

 

hdsContextSalesArea = contextSalesArea:dsContext.

contextSalesArea:setFilter(

'ttSalesArea.area_code','begins','').

 

MysalesArea =

NEW samples.pres.saSalesArea().

 

MysalesArea:fetchData(

OUTPUT DATASET dsSalesArea BY-REFERENCE,

 

INPUT-OUTPUT DATASET-HANDLE hdsContextSalesArea BY-REFERENCE).

 

BSSalesArea:

handle = DATASET dsSalesArea:Handle.

GridSalesArea:Datasource = BSSalesArea.

 

If the top MyCustomer:fetchdata line is uncommited openedge crashes.

 

If I comment out the MysalesArea:FetchData and uncomment the MyCustomer:FetchData the grid with customers appear and vice versa.

 

Any ideas?

Joseph Querijero Novice 180 posts since
Sep 11, 2007
Currently Being Moderated
Feb 5, 2010 3:55 PM in response to: Dale Hubbuck
Re: Playing with 10.2B eval and OOOERA classes. Is the code buggy or is it me?

Assign a query handle instead of a dataset handle to the binding source. There are some issues when using dataset handle.

Joseph Querijero Novice 180 posts since
Sep 11, 2007
Currently Being Moderated
Feb 8, 2010 2:54 PM in response to: Dale Hubbuck
Re: Playing with 10.2B eval and OOOERA classes. Is the code buggy or is it me?

What is inside contextInstance? You might be deleting resources that is still referenced by the UI.

Roger Blanchard Novice 152 posts since
Sep 10, 2007
Currently Being Moderated
Feb 8, 2010 4:28 PM in response to: Dale Hubbuck
Re: Playing with 10.2B eval and OOOERA classes. Is the code buggy or is it me?

Dale,

 

You may want to try the new startup parameter -reusableObjects 0 which turns off the reusing of objects. There is a bug with this new feature and our application would constantly crash without this parameter.

Mike Fechner Expert 1,653 posts since
Sep 11, 2007
Currently Being Moderated
Feb 9, 2010 5:54 AM in response to: Dale Hubbuck
Re: Playing with 10.2B eval and OOOERA classes. Is the code buggy or is it me?

Are you using a run/launch config that is still using 10.2A? (a common mistake that I make with migrated workspaces).

Roger Blanchard Novice 152 posts since
Sep 10, 2007
Currently Being Moderated
Feb 9, 2010 7:05 AM in response to: Dale Hubbuck
Re: Playing with 10.2B eval and OOOERA classes. Is the code buggy or is it me?

It sounds like a version of OpenEdge that does not support that parameter is installed. I have been working with this parameter for a month and have tried it enabled at the project level and run configuration with ho issues. Is it possible the other copy you have on the machine is causing issues? Maybe your path pointing to the wrong directory?

 

Roger Blanchard

John Fisher Newbie 1 posts since
Feb 24, 2010
Currently Being Moderated
Feb 24, 2010 12:02 PM in response to: Dale Hubbuck
Re: Playing with 10.2B eval and OOOERA classes. Is the code buggy or is it me?

I had a similar problem.  After reading this thread I added the -reusableObjects 0 option to the 'Server startup parameters' on the AppServer and it seems to have cured it.

 

All the best,

John

Roger Blanchard Novice 152 posts since
Sep 10, 2007
Currently Being Moderated
Feb 24, 2010 1:27 PM in response to: John Fisher
Re: Playing with 10.2B eval and OOOERA classes. Is the code buggy or is it me?

It definitely solved our application problem. We also use Roundtable and had to add this parameter to the appserver startup as well.

 

Roger Blanchard

More Like This

  • Retrieving data ...