Hi again-
I just talked about this with my boss. He thinks the problem could be memory allocation code that isn't failsafe. The visual studio debugger sets allocated memory to non-zero values as a way to help find problems like this, and when I run against the las libraries in the visual studio debugger it triggers these crashes. I can work around the problem by running in release mode only, but it is somewhat inconvenient. Either way, there are probably memory bugs in the 1.2 release. If you run your c++ tutorial code in the visual studio debugger you could probably find the problems and have a more stable release. For what it's worth, in my first message I mentioned the call stack when the writer crashes, and a buffer overrun error. Looking into it more, when the reader crashes, it has been near the malloc call of the new operator. Just more evidence of memory allocation problems. Thanks- Gary Robinson Software Engineer, Intelisum Inc. 801-924-0660 ext 127 grobin...@intelisum.com Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. _____ From: Gary Robinson [mailto:grobin...@intelisum.com] Sent: Tuesday, August 25, 2009 4:22 PM To: 'Gary Robinson'; 'liblas-devel@lists.osgeo.org' Subject: RE: reading/writing las files windows c++ Hi- Ok I've tried a bunch more stuff, now it looks like I can have success if I run in release mode, but not in debug. Is there a package made that I can use to run with debug mode that just isn't posted on the website? I suppose I can recompile everything to get debug versions of the libraries if I really need them, but I'd rather not if it already exists. Thanks- Gary Robinson Software Engineer, Intelisum Inc. 801-924-0660 ext 127 grobin...@intelisum.com Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. _____ From: Gary Robinson [mailto:grobin...@intelisum.com] Sent: Tuesday, August 25, 2009 2:51 PM To: 'liblas-devel@lists.osgeo.org' Subject: reading/writing las files windows c++ Hi- I am trying to use the liblas to import and export las files from my company's software. I am using windows vista and visual studio 9. I have successfully compiled everything. But when I try to run, I crash everytime in the constructor for LASWriter or LASReader. I have followed the code from the c++ tutorial on liblas.org, and I even just tried writing a simple win32 console app that did only what the tutorial has in it. I also included the dependent dlls in my exe directory (i.e. geotiff.dll, liblas1.dll, etc.). I searched through liblas.org and this mailing list and didn't find anybody that had mentioned this problem. Am I the only one trying c++ on windows, or am I missing something obvious that everybody else is doing correctly? I am using the 1.2.0 version linked from the home page of liblas.org. I also tried installing the OSGeo4W linked from the home page, but it made no difference. The writer crashes claiming a buffer overrun error. The call stack goes from my function to LASHeader::Init(), to LASSpatialReference::SetVLRs(), and then to _report_gsfailure(). The LASReader constructor has crashed in various places the different times I have tried it, I haven't isolated it to the same place every time. Thanks for any help you may provide. If I can't get past this problem I will have to try another solution for .las files. Gary Robinson Software Engineer, Intelisum Inc. 801-924-0660 ext 127 grobin...@intelisum.com Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind.
<<image001.jpg>>
_______________________________________________ Liblas-devel mailing list Liblas-devel@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/liblas-devel