Click here to Skip to main content
15,916,846 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs there any function to modify SubString of a string in VC++ Pin
kapardhi19-Dec-08 1:39
kapardhi19-Dec-08 1:39 
AnswerRe: Is there any function to modify SubString of a string in VC++ Pin
VC++Maniac19-Dec-08 1:43
VC++Maniac19-Dec-08 1:43 
AnswerRe: Is there any function to modify SubString of a string in VC++ Pin
Iain Clarke, Warrior Programmer19-Dec-08 3:29
Iain Clarke, Warrior Programmer19-Dec-08 3:29 
GeneralRe: Is there any function to modify SubString of a string in VC++ Pin
Hamid_RT19-Dec-08 5:31
Hamid_RT19-Dec-08 5:31 
AnswerRe: Is there any function to modify SubString of a string in VC++ Pin
David Crow20-Dec-08 6:39
David Crow20-Dec-08 6:39 
Questioncrash at vector::push_back. Pin
VC++Maniac19-Dec-08 1:16
VC++Maniac19-Dec-08 1:16 
AnswerRe: crash at vector::push_back. Pin
Jijo.Raj19-Dec-08 2:15
Jijo.Raj19-Dec-08 2:15 
GeneralRe: crash at vector::push_back. Pin
VC++Maniac19-Dec-08 2:47
VC++Maniac19-Dec-08 2:47 
The call stack:

> Desktop.exe!_crt_debugger_hook(int _Reserved=0) Line 65 C
Desktop.exe!_invalid_parameter(const wchar_t * pszExpression=0x00000000, const wchar_t * pszFunction=0x00000000, const wchar_t * pszFile=0x00000000, unsigned int nLine=0, unsigned int pReserved=0) Line 112 + 0x7 bytes C++
Desktop.exe!_invalid_parameter_noinfo() Line 125 + 0xc bytes C++
Desktop.exe!std::vector<crecord> >::insert(std::_Vector_const_iterator<crecord> > _Where=..., CRecord * const & _Val=0x01703200) Line 878 + 0x1e bytes C++
Desktop.exe!COutlineTextView::prepareSelBounds() Line 4816 C++
Desktop.exe!COutlineTextView::OnMouseMove(unsigned int nFlags=1, CPoint point={...}) Line 167 + 0x40 bytes C++
Desktop.exe!COutlineEditView::OnMouseMove(unsigned int nFlags=1, CPoint pointMove={...}) Line 2935 C++
Desktop.exe!CWnd::OnWndMsg(unsigned int message=512, unsigned int wParam=1, long lParam=3231936, long * pResult=0x007bfc9c) Line 2062 C++


Code snippet where it crashes:

declared as
std::vector<POSITION> m_selection;

in member function:
if (m_selection.size() > 0){
		m_selection.clear(); // previously used to crash here.       
}                       // then I put this if
	

    .........
,.............
        .......
	POSITION pos = m_selStart.getItem();
	while(pos != NULL && pos != m_selEnd.getItem())
	{
		m_selection.push_back(pos); // CRASH HERE
		pos = getMan()->getNext(pos);
	}

	ASSERT(pos);
	m_selection.push_back(m_selEnd.getItem());

QuestionRe: crash at vector::push_back. Pin
CPallini19-Dec-08 2:59
mveCPallini19-Dec-08 2:59 
AnswerRe: crash at vector::push_back. Pin
VC++Maniac19-Dec-08 3:11
VC++Maniac19-Dec-08 3:11 
GeneralRe: crash at vector::push_back. [modified] Pin
Iain Clarke, Warrior Programmer19-Dec-08 3:31
Iain Clarke, Warrior Programmer19-Dec-08 3:31 
GeneralRe: crash at vector::push_back. Pin
CPallini19-Dec-08 8:17
mveCPallini19-Dec-08 8:17 
GeneralRe: crash at vector::push_back. Pin
VC++Maniac28-Dec-08 1:58
VC++Maniac28-Dec-08 1:58 
GeneralRe: crash at vector::push_back. Pin
CPallini19-Dec-08 8:11
mveCPallini19-Dec-08 8:11 
GeneralRe: crash at vector::push_back. Pin
Randor 19-Dec-08 3:22
professional Randor 19-Dec-08 3:22 
AnswerRe: crash at vector::push_back. Pin
semitae11-Feb-10 1:28
semitae11-Feb-10 1:28 
QuestionHow can Get RECT value? Pin
Le@rner19-Dec-08 1:14
Le@rner19-Dec-08 1:14 
AnswerRe: How can Get RECT value? Pin
Stuart Dootson19-Dec-08 2:30
professionalStuart Dootson19-Dec-08 2:30 
QuestionRe: How can Get RECT value? Pin
CPallini19-Dec-08 2:37
mveCPallini19-Dec-08 2:37 
QuestionException handling in C++ Pin
San19-Dec-08 1:03
San19-Dec-08 1:03 
AnswerRe: Exception handling in C++ [modified] Pin
Jijo.Raj19-Dec-08 1:54
Jijo.Raj19-Dec-08 1:54 
GeneralRe: Exception handling in C++ Pin
Stuart Dootson19-Dec-08 2:24
professionalStuart Dootson19-Dec-08 2:24 
GeneralRe: Exception handling in C++ Pin
Jijo.Raj19-Dec-08 2:29
Jijo.Raj19-Dec-08 2:29 
GeneralRe: Exception handling in C++ Pin
Stuart Dootson19-Dec-08 2:34
professionalStuart Dootson19-Dec-08 2:34 
GeneralRe: Exception handling in C++ Pin
Jijo.Raj19-Dec-08 2:41
Jijo.Raj19-Dec-08 2:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.