cancel
Showing results for 
Search instead for 
Did you mean: 

Is argument allowed for DW.Retrieve() for .Net Assembly?

Former Member
0 Kudos

Hi,

Does anybody know whether I can set argument for datawindow.Retrieve() method in .Net Assembly target which generated assembly is used in WinForm application?  It looks like the datawindow can retrieve by passing in parameters.  However, there are few 'InvalidCastException' errors and probably affects performance. 

I got 'InvalidCastException' error in WinForm application when I turned on the setting to break when CLR exception is caught when there is/are retrieval argument(s) set in dw.Retrieve(lsArg) method.  If I just leave with no argument, there is no 'InvalidCastException' error.

PB12.1 Classic on .Net Assembly target

Thanks for any reply,

Christine

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Christine;

  Have you had a chance to try the .Net Assembly via PB 12.5.x or better yet, v12.6?

FYI: PB 12.1 is based on .Net 2.0 - whereas 12.5.x is .Net 3.5 and 12.6 utilizes .Net 4.0.

Regards ... Chris

Former Member
0 Kudos

Hi Chris,

We downloaded the trial for 12.6 but then it was expired.  And we did contact someone in Novalys to get licenses.  However, it looks like there is no clear answer on how to purchase licenses.

The datawindow does retrieve(parameters) by returning rows.  But WinForm application throws exception error which we think might affect the performance when .Net Assembly is running.

Christine

Former Member
0 Kudos

Hi Christine;

  Have you tried contacting Novalys about PB licencing through this mechanism ... Purchase PowerBuilder 12.6?

Regards ... Chris