Message 1 of 2
AcGePoint3dArray problem.
Not applicable
03-16-2007
06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an AcGePoint3dArray object declared as a member of my class. In my OnPaint(), I check the size of the array and if > 0 I proceed to draw to a window markers at the points specified. At this time I have no items in this array, but for some reason the logical length is many?
[code]
if(!m_ptsMarkers.isEmpty())
{
CPen pen(PS_SOLID, 1, RGB(0,255,0));
CPen* pTemp = dc.SelectObject(&pen);
for(int i = 0; i < m_ptsMarkers.length(); i++)
DrawMarker(m_ptsMarkers.at(i), &dc);
dc.SelectObject(pTemp);
}
[/code]
In debug, I placed a breakpoint at the first line of code above and the values for the m_ptsMarkers is as follows:
[quote]
{mpArray = 0X00000000, mPhisicalLength = 116513308, mLogicalLength = 1...}
[/quote]
This does not make sence to me. Any ideas?
Mike B
[code]
if(!m_ptsMarkers.isEmpty())
{
CPen pen(PS_SOLID, 1, RGB(0,255,0));
CPen* pTemp = dc.SelectObject(&pen);
for(int i = 0; i < m_ptsMarkers.length(); i++)
DrawMarker(m_ptsMarkers.at(i), &dc);
dc.SelectObject(pTemp);
}
[/code]
In debug, I placed a breakpoint at the first line of code above and the values for the m_ptsMarkers is as follows:
[quote]
{mpArray = 0X00000000, mPhisicalLength = 116513308, mLogicalLength = 1...}
[/quote]
This does not make sence to me. Any ideas?
Mike B