Board index » cppbuilder » OWNext bug

OWNext bug


2003-10-09 12:13:23 AM
cppbuilder50
Anyone notice that using TListBoxData->GetSelIndices() causes an exception?
 
 

Re:OWNext bug

Bruce Salzman wrote:
Quote
Anyone notice that using TListBoxData->GetSelIndices() causes an exception?


I don't use the transfer buffers, but I'll check this bug.
I submitted it for reference at
sourceforge.net/tracker/
--
Jogy
www.jogy.net/
XXXX@XXXXX.COM
 

Re:OWNext bug

Bruce Salzman wrote:
Quote
Anyone notice that using TListBoxData->GetSelIndices() causes an exception?


Hello, Bruce
I couldn't replicate this, with BC5.02 and BCC5.5
Which compiler are you using?
Can you send me an example?
--
Jogy
www.jogy.net/
XXXX@XXXXX.COM
 

{smallsort}

Re:OWNext bug

"Jogy" < XXXX@XXXXX.COM >wrote in message
Quote
Bruce Salzman wrote:
>Anyone notice that using TListBoxData->GetSelIndices() causes an
exception?
>
>

Hello, Bruce

I couldn't replicate this, with BC5.02 and BCC5.5
Neither could I.
Quote
Which compiler are you using?
Builder 6
Quote
Can you send me an example?

I'll see what I can do...
Thanks, Jogy
 

Re:OWNext bug

Hi Jogy,
Some more info:
I built OWLNext with _USE_OLD_RW_STL (as well as my program).
I have problems with TListboxData's GetStrings() as well as
GetSelIndicies().
When I try to access the TIntArray or TStringArray returned by these
functions, an exception is thrown in TMObjectArray at the line:
PRECONDITION(loc < (int)Size());
It looks like TArrayBase::ItemCnt has some garbage value.
For example,
TStringArray& strings = listboxdata->GetStrings();
int n = strings.GetItemsInContainer(); <<< exception
or
int i = listboxdata->GetSelIndices()[0]; <<< exception
Regards,
Bruce