Error when my program ends

Asked By 80 points N/A Posted on -


I have written a program to view my PLY file and the program is written below:


        pcl::PointCloud<pcl::PointXYZ> cloud; // 
        pcl::io::loadPLYFile("scene-1.ply",cloud); // 

        pcl::visualization::CloudViewer viewer("Cloud Viewer"); 
        PointCloud<PointXYZ>::Ptr pcloud(&cloud); 

        while (!viewer.wasStopped ()) 
        return 0; 

When I am done with my program and I view my PLY file, as soon as I close it an error appears:

Microsoft Visual C++ Debug Library

Debug Error!

Program: E:


Damage before 0x0031F900 which was allocated by aligned


(Press Retry to debug the application)

                                              (A)                     (R)                    (I)

I am unable to find the point in the program which is creating this problem. Can anybody please go through this program for me and find the problematic part.

I'll be grateful.

Waiting for a reply from you soon.



Answered By 0 points N/A #155385

Error when my program ends


Hello Halin,

To resolve the issue that you are getting, you will need to download dial -a- fix  and see if it will help resolve the issue that you are getting

After you have downloaded it, you will need to do the following:

  • Double click on it in order to extract all of the files it has.
  • And after that open the folder that it will create.
  • You will need to look for a file called Dial-a-fix and then click on it.
  • And then put a check to the following:

Install Windows Script Host
Install VB6 runtime
Programming Cores/Runtimes
Object Linking Libraries (OLE)

  • And then you will click on GO at the bottom.
  • The fix may take a while to complete. After it finishes restart your computer.



Login/Register to Answer

Related Questions