Archived

This forum has been archived. Please start a new discussion on GitHub.

line limit when loading files for configuration at runtime

Hi,

I have just run across a limitation in the load() method of the PropertiesI class (line 212 in <ICE-3.2.0_SOURCE_DIR/src/Ice/PropertiesI.cpp>). When loading a file for configuration, there is a 1024 size limit for each line (line 223 and 224).

Although 1024 should be large enough for most applications, silly people like me might try to read in a very large string to be read in at run time (I probably should read these strings in from a file in hindsight). At the moment, this load method quietly fails without specification of the error. Is it possible to document this limitation and/or warn the user that the line is too large to read in?

Thanks for all the great work and thanks in advance for reading through this comment.

Ben

Comments

  • Thanks for the bug report. We'll look at removing this limitation.

    Cheers,

    Michi.