Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Mixed Language Build C/C++ Pin
Roger Broomfield1-Aug-07 18:11
Roger Broomfield1-Aug-07 18:11 
GeneralRe: Mixed Language Build C/C++ Pin
ForNow1-Aug-07 18:56
ForNow1-Aug-07 18:56 
QuestionRe: Heap problem?? desperately need help. Pin
Mark Salsbery1-Aug-07 10:25
Mark Salsbery1-Aug-07 10:25 
AnswerRe: Heap problem?? desperately need help. Pin
alberthyc1-Aug-07 10:32
alberthyc1-Aug-07 10:32 
GeneralRe: Heap problem?? desperately need help. Pin
Mark Salsbery1-Aug-07 10:42
Mark Salsbery1-Aug-07 10:42 
GeneralRe: Heap problem?? desperately need help. Pin
alberthyc1-Aug-07 11:05
alberthyc1-Aug-07 11:05 
GeneralRe: Heap problem?? desperately need help. Pin
Mark Salsbery1-Aug-07 11:23
Mark Salsbery1-Aug-07 11:23 
GeneralRe: Heap problem?? desperately need help. Pin
alberthyc1-Aug-07 11:32
alberthyc1-Aug-07 11:32 
i don't think so, the code in my file is a little different, i'm posting a simpfied version, but i'm pretty sure they are initialized

the code below is the original code, and all variables are initialized.
the "SpcSetParam...." function comes from the external library, don't worry about it.

UINT __cdecl CMy61xxTestDlg::Start(LPVOID pParam){
// ----- start the board -----
CMy61xxTestDlg* me=(CMy61xxTestDlg*)pParam;
me->nBufIdx = 0;
me->lCommand = SPC_FIFOSTART;
me->lBufCount = 0;

do
{
me->nErr = SpcSetParam (me->hDrv, SPC_COMMAND, me->lCommand);

me->lCommand = SPC_FIFOWAIT;

// ----- driver requests next buffer: calculate it or load if from disk -----

me->OutputData (me->pbyData[me->nBufIdx], me->BUFSIZE,me);

// ----- buffer is ready -----
SpcSetParam (me->hDrv, SPC_FIFO_BUFREADY, me->nBufIdx);

// ----- next Buffer -----
me->lBufCount++;
me->nBufIdx++;
if (me->nBufIdx == MAX_BUF)
me->nBufIdx = 0;
}
while (me->nErr == ERR_OK);

delete me;
return 0;// assertion occurs here
}

by using the break points, i found out that the assertion at return 0
GeneralRe: Heap problem?? desperately need help. Pin
Mark Salsbery1-Aug-07 11:37
Mark Salsbery1-Aug-07 11:37 
GeneralRe: Heap problem?? desperately need help. Pin
alberthyc1-Aug-07 11:46
alberthyc1-Aug-07 11:46 
GeneralRe: Heap problem?? desperately need help. Pin
Mark Salsbery1-Aug-07 11:58
Mark Salsbery1-Aug-07 11:58 
GeneralRe: Heap problem?? desperately need help. Pin
Mark Salsbery1-Aug-07 12:08
Mark Salsbery1-Aug-07 12:08 
QuestionDebugging Error Pin
pheven1-Aug-07 8:50
pheven1-Aug-07 8:50 
AnswerRe: Debugging Error Pin
Michael Dunn1-Aug-07 9:31
sitebuilderMichael Dunn1-Aug-07 9:31 
AnswerRe: Debugging Error Pin
Mark Salsbery1-Aug-07 9:40
Mark Salsbery1-Aug-07 9:40 
GeneralRe: Debugging Error Pin
pheven1-Aug-07 10:50
pheven1-Aug-07 10:50 
QuestionTTS SAPI5 Pin
pablov061-Aug-07 8:14
pablov061-Aug-07 8:14 
QuestionAccess Report DB Pin
mk_le1-Aug-07 8:13
mk_le1-Aug-07 8:13 
QuestionHow to copy a file opened by other process with forbidden sharing? Pin
Vlad01-Aug-07 7:48
Vlad01-Aug-07 7:48 
AnswerRe: How to copy a file opened by other process with forbidden sharing? Pin
JudyL_MD1-Aug-07 9:38
JudyL_MD1-Aug-07 9:38 
AnswerRe: How to copy a file opened by other process with forbidden sharing? Pin
Randor 1-Aug-07 10:01
professional Randor 1-Aug-07 10:01 
GeneralRe: How to copy a file opened by other process with forbidden sharing? Pin
Vlad02-Aug-07 8:29
Vlad02-Aug-07 8:29 
GeneralRe: How to copy a file opened by other process with forbidden sharing? [modified] Pin
Vlad022-Aug-07 7:54
Vlad022-Aug-07 7:54 
AnswerRe: How to copy a file opened by other process with forbidden sharing? Pin
Peter Weyzen1-Aug-07 21:16
Peter Weyzen1-Aug-07 21:16 
GeneralRe: How to copy a file opened by other process with forbidden sharing? Pin
Vlad02-Aug-07 5:14
Vlad02-Aug-07 5:14 

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.