Error when my program ends
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