Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2016 at 02:25 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.