Error when my program ends

Asked By 80 points N/A Posted on -
qa-featured

Hello,

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

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

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

        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:

DebugPCL_RANSAC.ex

Damage before 0x0031F900 which was allocated by aligned

routine

(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.

Regards,

Juliet

SHARE
Answered By 10 points N/A #155385

Error when my program ends

qa-featured

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.

Regards,

Carl

Related Questions