In more digging (again, I'm not an HDF expert, but this problem piques my
curiosity), it looks like the HDF library imposes its own file-open
limitation. The number of open files was limited to 32 prior to HDF v4.2r2,
but can now be set to any arbitrary number. Perhaps the most interesting
factoid, apparently unknown to the implementor of PDL::IO::HDF::SD, is that
"The calling program must make one SDend call for every SDstart call made
during its execution.
<http://www.hdfgroup.org/release4/doc/UsrGuide_html/UG_SD.html#wp19555>"
This is not stated in the documentation that I mentioned previously, and
clearly this is not happening in the constructor method. I think the each
call to die not immediately preceded by a call to _SDend needs to be
preceded by a call to _SDend, such as here
<https://metacpan.org/source/CHM/PDL-2.007/IO/HDF/SD/SD.pd#L445>, here
<https://metacpan.org/source/CHM/PDL-2.007/IO/HDF/SD/SD.pd#L451>, here
<https://metacpan.org/source/CHM/PDL-2.007/IO/HDF/SD/SD.pd#L464>, and
others like it.

I know what I would change, but I don't have HDF on my machine so I cannot
test any changes I might make to the PDL bindings. Does any of the other
devs have HDF?

Edward, do you think you could boil this down to something we could put in
the test suite?

David

On Mon, May 11, 2015 at 6:10 PM, Hyer, Dr. Edward <
[email protected]> wrote:

> >Your code logs the error messages. Do they all say "_ERR::SDstart" ?
>
> Yes, I'm pretty sure all the errors are the same.
>
> --Edward H.
>
>


-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to