GrapeCity Forums

The GrapeCity Message Boards
Welcome to GrapeCity Forums Sign in | Join | Help
in Search

Listpro3 problem with VS 2005.

Last post 06-26-2009, 12:24 PM by rookpsu. 4 replies.
Sort Posts: Previous Next
  •  12-16-2005, 7:09 AM 27388

    Listpro3 problem with VS 2005.

    Finally got the MSDN version of VS 2005, so started on a new project, put a list box on a windows form, wrote some code, ran it and "whoops".

    PROBLEM 1
    ========

    on the .clear() method, VS is grumbling about writing to protected memory, see below.

    System Exception has Occured.

    System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
       at LpLib.IfpList.Clear()
       at AxLpLib.AxfpList.Clear()
       at Rolex_UK_Offline.frmSearchOrg.frmSearchOrg_Load(Object sender, EventArgs e) in D:\Visual Studio 2005 Projects\Rolex UK Offline\Rolex UK Offline\Names and addresses\Search Organisations.vb:line 17
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
       at System.Windows.Forms.Control.Show()
       at Rolex_UK_Offline.frmMain.CreateCallReport() in D:\Visual Studio 2005 Projects\Rolex UK Offline\Rolex UK Offline\Starting Up\Offline MDI Background.vb:line 262

    In frmMain (CreateCallReport)

    PROBLEM 2
    ========
    On the windows form designer, I anchored the list box control for top left bottom right, resized the form. I can see the list pro control going nuts, as it's got stuck in an endless loop while trying to sort it's vertical size out.  It looks like well, hmm. It draws itself, then shrinks itself, then grows, then shrinks and you can see the bottom of the list trying to do its stuff, and then the Dev Environment is running at 99% CPU.  You can cure this by right clicking on the project in the taskbar. and the form and the controls go back to their original size.  Bit weird eh?

    QUERY
    =====
    Is this normal?
    I add the Farpoint List Pro 3.0 Controls (Interop.LpLib.dll) as a reference in my project, so what is this that gets added?

    AxInterop.Lplib.dll (in the bin\Debug folder)
    And my list controls appear to reference this.

    Any help appreciated

    Cheers.
    Greg Russell.

  •  12-16-2005, 1:26 PM 27404 in reply to 27388

    Re: Listpro3 problem with VS 2005.

    Greg -

    Using the latest version of ListPro I was unable to reproduce the issue of clearing the listbox and getting the memory error.  It worked fine for me.  The second issue I was able to reproduce, but I don't know if there would be anything the developer could do about it.  I will send him a link to this post.

    The two dll's that are created for the control when you draw it on the form are the wrapper classes for the control.  This is the expected behavior that .Net does for COM controls.
    Bob M.
    FarPoint Technologies, Inc.
  •  12-16-2005, 3:06 PM 27409 in reply to 27388

    Re: Listpro3 problem with VS 2005.

    Greg,

    The issue with setting the Anchor property is due to a conflict with the NoIntegralHeight property.  NoIntegralHeight makes the control resize itself so that there is an integral number of rows shown in the list whenever the control is resized, and Anchor makes the form resize the control when it gets resized.  This causes a loop when the form tries to resize the control to a non-integral height value.  If you set NoIntegralHeight to True, then this problem will go away (but you might see a partial row at the bottom of the list).

    seanl
    Product Manager, FarPoint Spread for Windows Forms (.NET), FarPoint Spread COM
    GrapeCity FarPoint
  •  06-26-2009, 12:23 PM 79549 in reply to 27388

    Re: Listpro3 problem with VS 2005.

    Ever get a resolution for this?  I'm having the EXACT same problem.
  •  06-26-2009, 12:24 PM 79550 in reply to 79549

    Re: Listpro3 problem with VS 2005.

    Nevermind, i'll just upgrade.
View as RSS news feed in XML
     FarPoint Forums Home