Click here to Skip to main content
15,907,326 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Locale Pin
David Crow15-Apr-03 4:48
David Crow15-Apr-03 4:48 
GeneralRe: Locale Pin
vcseeker15-Apr-03 17:30
vcseeker15-Apr-03 17:30 
GeneralIn over my head - Rookie needs a clue Pin
CantFindMind14-Apr-03 15:20
CantFindMind14-Apr-03 15:20 
GeneralRe: In over my head - Rookie needs a clue Pin
Ravi Bhavnani14-Apr-03 18:06
professionalRavi Bhavnani14-Apr-03 18:06 
QuestionRLE24??? Pin
alex.barylski14-Apr-03 14:34
alex.barylski14-Apr-03 14:34 
AnswerRe: RLE24??? Pin
Joe Woodbury14-Apr-03 15:23
professionalJoe Woodbury14-Apr-03 15:23 
AnswerRe: RLE24??? Pin
Chris Losinger14-Apr-03 15:27
professionalChris Losinger14-Apr-03 15:27 
GeneralHELP!!! can not read memory... threads Pin
(Steven Hicks)n+114-Apr-03 13:00
(Steven Hicks)n+114-Apr-03 13:00 
I'm very agrivated right now. I've created a worker thread that reads a file.. thats working perfectly. It parses and places all the data into an struct CArray. After that it checks for incomplete data. This is where things get screwy. It downloads a file perfectly (the function) in the thread with out crashing.

BUT
when I try to send the string that contains the missing data's URL it crashes. (See code)

CString CBookmarks::GetAllKeywords(LPVOID pParam)
{
//Declare Varables
//Date: 4 8 03
CBookmarks* pMain = static_cast<cbookmarks*>(pParam);
CCriticalSection m_cSection;
CString m_strAllKeywords;
int nSize=pMain->m_structBookmarks.GetUpperBound();
//

//DisplayItems
for (int i=0; i<=nSize;i++)
{
m_cSection.Lock();
m_strAllKeywords+=DownloadFile(pMain->m_structBookmarks[i].m_strURL);
m_cSection.Unlock();
m_strAllKeywords+=", "+pMain->m_structBookmarks.GetAt(i).m_strKeyword;
}
return m_strAllKeywords;
}

This crashes even when the debugger is running.

It reads the keywords from the first entry and then craps out when it repeats. The data in the next string is fine.

Even a TRY, CATCH_ALL doesn't catch it.

HELP!
-Steven

By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.

For those who were wondering, actual (Linux) Penguins were harmed in creating this message.

Visit Ltpb.8m.com

404Browser (Efficient, Fast, Secure Web Browser): 404Browser.com


GeneralRe: HELP!!! can not read memory... threads Pin
Tim Smith14-Apr-03 13:47
Tim Smith14-Apr-03 13:47 
GeneralRe: HELP!!! can not read memory... threads Pin
(Steven Hicks)n+115-Apr-03 10:17
(Steven Hicks)n+115-Apr-03 10:17 
GeneralRe: HELP!!! can not read memory... threads Pin
valikac14-Apr-03 14:45
valikac14-Apr-03 14:45 
GeneralRe: HELP!!! can not read memory... threads Pin
(Steven Hicks)n+115-Apr-03 10:20
(Steven Hicks)n+115-Apr-03 10:20 
GeneralCheck Menu Pin
Selevercin14-Apr-03 12:47
Selevercin14-Apr-03 12:47 
GeneralRe: Check Menu Pin
Miszou14-Apr-03 13:11
Miszou14-Apr-03 13:11 
GeneralRe: Check Menu Pin
Selevercin14-Apr-03 13:43
Selevercin14-Apr-03 13:43 
GeneralRe: Check Menu Pin
Miszou14-Apr-03 13:53
Miszou14-Apr-03 13:53 
GeneralRe: Check Menu Pin
Selevercin15-Apr-03 13:23
Selevercin15-Apr-03 13:23 
GeneralMulti-dimensional Arrays Pin
ed114-Apr-03 11:47
ed114-Apr-03 11:47 
GeneralRe: Multi-dimensional Arrays Pin
Joe Woodbury14-Apr-03 11:57
professionalJoe Woodbury14-Apr-03 11:57 
GeneralRe: Multi-dimensional Arrays Pin
Dave Bryant14-Apr-03 12:01
Dave Bryant14-Apr-03 12:01 
GeneralRe: Multi-dimensional Arrays Pin
(Steven Hicks)n+114-Apr-03 12:52
(Steven Hicks)n+114-Apr-03 12:52 
GeneralImage recording Pin
alex.barylski14-Apr-03 11:04
alex.barylski14-Apr-03 11:04 
GeneralRe: Image recording Pin
Jack Handy14-Apr-03 11:26
Jack Handy14-Apr-03 11:26 
GeneralRe: Image recording Pin
alex.barylski14-Apr-03 11:49
alex.barylski14-Apr-03 11:49 
GeneralRe: Image recording Pin
J. Dunlap14-Apr-03 11:40
J. Dunlap14-Apr-03 11:40 

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.