Listview Error add error

Posted on 2006-05-30
Last Modified: 2010-04-05
When I try that code I get following error * Unable to insert an item *

 with MainForm.TreeView1.Items do

 if dat[0] = '' then
  if MyFreeRefNode1 = nil then
     MyTreeNode1 := Add( MyTreeNode1, '@ '+MainHost ); {add master node}
     MyFreeRefNode1 := MyTreeNode1;
     AddChild( MyFreeRefNode1, 'Lobby: Error no lobbys found.' ); { add error node }
     if Not Assigned ( MyFreeRefNode1 ) then
       MyTreeNode1 := Add( MyTreeNode1, '@ '+MainHost ); {add master node}
       MyFreeRefNode1 := MyTreeNode1;
     AddChild( MyFreeRefNode1, dat[0] ); {add lobbys node}

Question by:fiveuk
    1 Comment
    LVL 17

    Accepted Solution

    This is an EOutOfResources Error
    you can get this if your program is doing a loop that doesn't exit, it can occur before a Stack overflow error
    Make sure your code is not doing an endless loop
    If you are still stuck, try posting the bit of code that happens around the code you have already posted.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now