C++ / JNI memory leakage, help needed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lev

    #31
    Re: C++ / JNI memory leakage, help needed

    function c_str() returns const <CHAR_TYPE> *


    "John Harrison" <john_andronicu s@hotmail.com> wrote in message
    news:c4mbgi$2j5 in4$1@ID-196037.news.uni-berlin.de...[color=blue][color=green]
    > >
    > > What John said, but consider using a std::basic_stri ng<TCHAR> instead of
    > > std::vector<TCH AR>. The basic string in C++ has more Java-like syntax,
    > > e.g. the operator [ ] is range-checked, and concatenation can be done
    > > with operator +.[/color]
    >
    > But the problem with std::basic_stri ng is that you cannot get a writable
    > pointer from it. Therefore it's not suitable for passing to[/color]
    SendMessage(win ,[color=blue]
    > WM_GETTEXT ...).
    >
    > john
    >
    >[/color]


    Comment

    • John Harrison

      #32
      Re: C++ / JNI memory leakage, help needed


      "lev" <ltsentsiper@br andsoft.com> wrote in message
      news:1gZbc.1828 93$Cb.1698658@a ttbi_s51...[color=blue]
      > function c_str() returns const <CHAR_TYPE> *
      >[/color]

      which is not a *writable* pointer

      john


      Comment

      • John Harrison

        #33
        Re: C++ / JNI memory leakage, help needed


        "lev" <ltsentsiper@br andsoft.com> wrote in message
        news:1gZbc.1828 93$Cb.1698658@a ttbi_s51...[color=blue]
        > function c_str() returns const <CHAR_TYPE> *
        >[/color]

        which is not a *writable* pointer

        john


        Comment

        Working...