-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/11/2013 01:27 PM, Matt D wrote:
> If this is the case what can be done?
>
> On 12/09/2013 06:19 PM, Steve Glass wrote:
>> Sorry for the late reply on this but I fear you are returning a
>> reference to a variable that's on the stack (and hence
>> out-of-scope by the time control returns from the call). The bit
>> pattern maybe there in memory but you are making an illegal
>> access.
>
>> Lets see the code snippet for the function and we can help.
>
OK, so the problem has got to be that I put the type 'bit_vector' in
front of the 'decoded_lcw_vec' in the .cc file. But if I don't put
the type there I get a compile error, which is the reason I put the
type there in the first place.
If I use an array and declare it private in the .h then the program
works and i get error corrected values in the UI. should i just stick
with this or is there some reason I should be using the bit_vector type?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (GNU/Linux)
Comment: MacGPG2 - http://www.gpgtools.org/macgpg2.html
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSqM7nAAoJECrdp7MWSIVb2CsH/0AXaauAW8OJCueVNUcioJxB
5S7VX/OGC8w5Cz+yIsyipEj3J4sg9KLQklPiCKCPC+qbq9kgKacqOIJ/stvUC4Sp
cPoKb8+rj9+yYIBPRKay9o5/ooczmo8w1ElFyknpSBuev3MKonzO9sZENcqOH2lf
CU0s7ReYvuBSBM73XEQlsnNJ0bU2jtm1ZLMb0YkS4mXKcoeSm11eZky8g33rridc
tOJR/fTici/zKXdOPowawvjitcAm/WJELyEMF7YBbD8VOMFbrU8klFDMGvaSLH/Q
oDKE4wJ5rH6spvECKCn8M957q5pnYM9/JYk//WzDifcbaeipuI3+O/khClDOzfY=
=drtZ
-----END PGP SIGNATURE-----

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)
Recent Activity:
Visit Your Group
.

__,_._,___