Yup. What I do, is store the info like so:<br>
<br>
cDevice[iCount] = d->name;<br>
<br>
Then, when I goto list the info, I do this:<br>
<br>
for(i = 0; i < iCount; i++){<br>
m_devices.AddString(cDevice[i]);<br>
}<br><br>
(m_devices is a ListBox)<br>
<br><div><span class="gmail_quote">On 11/16/05, <b class="gmail_sendername">Gianluca Varenni</b> <<a href="mailto:gianluca.varenni@cacetech.com">gianluca.varenni@cacetech.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font size="2">Maybe it's an obvious question: are you actually *copying" the
strings in pcap_if_t* (e.g. pcap_if_t::name and
pcap_if_t::description)?</font></div><span class="q">
<div><font size="2"></font> </div>
<div><font size="2">Have a nice day</font></div>
<div><font size="2">GV</font></div>
<div> </div>
<div><font size="2"></font> </div>
<div><font size="2"></font> </div>
<div><font size="2"></font> </div>
</span><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><span class="q">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="nightskywriter@gmail.com" href="mailto:nightskywriter@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Eric
Hansen</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
winpcap-users@winpcap.org</a> </div></span><span class="q">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Wednesday, November 16, 2005 11:12
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [Winpcap-users]
pcap_freealldevs() causing program crash.</div>
<div><br></div></span><div><span class="e" id="q_1079a9f9178d9073_5">No, what I have so far is just all the information stored in
arrays, and I display that info. after calling freealldevs();<br><br>MqX:
Thanks, but it's still causing me trouble (I really appreciate it
though).<br><br>
<div><span class="gmail_quote">On 11/16/05, <b class="gmail_sendername">Guy
Harris</b> <<a href="mailto:guy@alum.mit.edu+" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guy@alum.mit.edu </a>>
wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Eric
Hansen wrote:<br>> Well, I got my program to not crash (I put the
freealldevs() at the very <br>> end of my init function). But,
now, the device names are "encrypted"<br>> (they show up in weird
characters now, unlike before when they showed up<br>> like they
should).<br><br>You're not referring to the devices after the
pcap_freealldevs() call,
<br>right?<br>_______________________________________________<br>Winpcap-users
mailing list<br><a href="mailto:Winpcap-users@winpcap.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Winpcap-users@winpcap.org</a><br><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://tenshi.honeyblade.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://tenshi.honeyblade.net</a> (my
poetry)<br><br>"You wanted this ending to happen...ROMANTISUTO!"
</span></div><p>
</p><hr><span class="q">
<p></p>_______________________________________________<br>Winpcap-users
mailing
list<br><a href="mailto:Winpcap-users@winpcap.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Winpcap-users@winpcap.org</a><br><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br></span><p></p></blockquote>
<br>_______________________________________________<br>Winpcap-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">
https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://tenshi.honeyblade.net">http://tenshi.honeyblade.net</a> (my poetry)<br><br>"You wanted this ending to happen...ROMANTISUTO!"