Re: [gdal-dev] Java bindings to gdal/ogr - looking for more developer documentation

2025-07-18 Thread Even Rouault via gdal-dev
Hi Tom, please file an issue at https://github.com/OSGeo/gdal/issues with your reproducer snippet Even Le 17/07/2025 à 02:28, Tom Moore a écrit : Hi Evan I seem to still be having problems closing datasets in Java resulting in a JVM crash, using gdal-3-13-3_x64 downloaded from the GISInter

Re: [gdal-dev] Java bindings to gdal/ogr - looking for more developer documentation

2025-07-16 Thread Tom Moore via gdal-dev
Hi Evan I seem to still be having problems closing datasets in Java resulting in a JVM crash, using gdal-3-13-3_x64 downloaded from the GISInternals site. Below is the stack trace information. --- T H R E A D --- Current thread (0x01ffd39932c0): JavaThread "Fin

Re: [gdal-dev] Java bindings to gdal/ogr - looking for more developer documentation

2025-05-30 Thread Even Rouault via gdal-dev
Le 30/05/2025 à 23:39, Tom Moore a écrit : Hi Even I just wanted to update you and provide a record for posterity with the results of me playing around with gdal/java and resource management. It appears to me that Dataset objects should not be closed from Java client code.  If you do then o

Re: [gdal-dev] Java bindings to gdal/ogr - looking for more developer documentation

2025-05-30 Thread Tom Moore via gdal-dev
Hi Even I just wanted to update you and provide a record for posterity with the results of me playing around with gdal/java and resource management. It appears to me that Dataset objects should not be closed from Java client code. If you do then often there will be an access violation (native

Re: [gdal-dev] Java bindings to gdal/ogr - looking for more developer documentation

2025-05-29 Thread Tom Moore via gdal-dev
Thank Evan! I am planning on being read-only for now. My program is interactive and potentially long-lived, and the user interface can be used to open layers at different times. If I miss closing a Dataset will the garbage collector eventually take care of this? Or is it important to always

Re: [gdal-dev] Java bindings to gdal/ogr - looking for more developer documentation

2025-05-29 Thread Even Rouault via gdal-dev
My program is interactive and potentially long-lived, and the user interface can be used to open layers at different times. If I miss closing a Dataset will the garbage collector eventually take care of this? If it is no longer referenced by a Java variable, yes it should in theory (depend

Re: [gdal-dev] Java bindings to gdal/ogr - looking for more developer documentation

2025-05-29 Thread Even Rouault via gdal-dev
Hi, In particular I would like to know more about object life cycles and memory management: What kind of object management is the client program responsible for? Normally none, but you may want to explicitly call .Close() on datasets to ensure the underlying file is closed at the appropriat

[gdal-dev] Java bindings to gdal/ogr - looking for more developer documentation

2025-05-29 Thread Tom Moore via gdal-dev
Hi I am new to using gdal/ogr in Java via the swig bindings and I am trying to figure things out by googling around. I have looked at the API documentation, tutorials and sample programs, but I still have a few questions. In particular I would like to know more about object life cycles and mem