Click here to Skip to main content
15,920,576 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DLL Won't load in different location Pin
pgarciajumela13-Oct-05 7:22
pgarciajumela13-Oct-05 7:22 
GeneralRe: DLL Won't load in different location Pin
pgarciajumela13-Oct-05 7:31
pgarciajumela13-Oct-05 7:31 
GeneralRe: DLL Won't load in different location Pin
Chris Losinger13-Oct-05 7:40
professionalChris Losinger13-Oct-05 7:40 
GeneralRe: DLL Won't load in different location Pin
pgarciajumela13-Oct-05 8:45
pgarciajumela13-Oct-05 8:45 
GeneralRe: DLL Won't load in different location Pin
Blake V. Miller13-Oct-05 18:07
Blake V. Miller13-Oct-05 18:07 
QuestionGDI- How to draw concentric circles in the client area of window Pin
tamila_tamila13-Oct-05 7:00
tamila_tamila13-Oct-05 7:00 
AnswerRe: GDI- How to draw concentric circles in the client area of window Pin
S. Senthil Kumar13-Oct-05 21:59
S. Senthil Kumar13-Oct-05 21:59 
QuestionRuntime Error, dbgheap.c Line:612 Pin
Jader8913-Oct-05 6:21
Jader8913-Oct-05 6:21 
I've tried looking up this error elsewhere with no luck. Here is what im doing to cause the error. First creating a pointer to a byte(or char, whatever) of data:

char* data = (char*)malloc(sizeof(char));
memset( data, 0, sizeof(char) );

Then read in a char from a open file:

file.Read( data, sizeof(char) );

Then check for either '\t' or '\n'... All variables have been declared as follows

bool out;
CString str;
CFile file; // this has been opened properly, and ready for reading.
UINT32 tmp;
byteSwap bs; // All this does is change a UINT32 to a float, and vice versa.

do
{
out = false;
str.Empty();
do
{
file.Read( data, sizeof(char) );
if( *data == '\t' )
{
tmp = (UINT32)atoi( str.GetBuffer() );
bs.i = tmp;
msg.icd.gimary.points[i][0] = bs.f;
str.Empty();
} else if ( *data == '\n' ){
tmp = (UINT32)atoi( str.GetBuffer() );
bs.i = tmp;
msg.icd.gimary.points[i][1] = bs.f;
out = true;
} else {
char ch = data[0];
str.AppendChar(ch); // Error here
}
}
while( !out );
i++;
}
while( i < msg.icd.gimary.numPoints );

After a large portion of the file has been read, i get an error in dbgheap.c @ line:612, which is a _CrtCheckMemory() failure... Any ideas on how this is caused? If you need more info, just post. I'll reply within 5 mins or so. Thanks in advance!
GeneralRe: Runtime Error, dbgheap.c Line:612 Pin
David Crow13-Oct-05 7:06
David Crow13-Oct-05 7:06 
GeneralRe: Runtime Error, dbgheap.c Line:612 Pin
Jader8913-Oct-05 8:13
Jader8913-Oct-05 8:13 
QuestionRe: Runtime Error, dbgheap.c Line:612 Pin
David Crow13-Oct-05 10:20
David Crow13-Oct-05 10:20 
AnswerRe: Runtime Error, dbgheap.c Line:612 Pin
Jader8914-Oct-05 7:44
Jader8914-Oct-05 7:44 
QuestionHelp with Multi Functions Pin
WackoWolf13-Oct-05 6:12
WackoWolf13-Oct-05 6:12 
AnswerRe: Help with Multi Functions Pin
Maximilien13-Oct-05 6:35
Maximilien13-Oct-05 6:35 
GeneralRe: Help with Multi Functions Pin
WackoWolf13-Oct-05 7:16
WackoWolf13-Oct-05 7:16 
AnswerRe: Help with Multi Functions Pin
ky_rerun13-Oct-05 8:54
ky_rerun13-Oct-05 8:54 
AnswerRe: Help with Multi Functions Pin
jmkhael13-Oct-05 9:44
jmkhael13-Oct-05 9:44 
QuestionEncrypted shared memory Pin
Chintoo72313-Oct-05 5:18
Chintoo72313-Oct-05 5:18 
QuestionMissing pointer between threads Pin
bispenho13-Oct-05 5:16
sussbispenho13-Oct-05 5:16 
AnswerRe: Missing pointer between threads Pin
David Crow13-Oct-05 5:42
David Crow13-Oct-05 5:42 
GeneralRe: Missing pointer between threads Pin
bispenho13-Oct-05 6:20
sussbispenho13-Oct-05 6:20 
GeneralRe: Missing pointer between threads Pin
David Crow13-Oct-05 7:12
David Crow13-Oct-05 7:12 
GeneralRe: Missing pointer between threads Pin
André RB13-Oct-05 7:31
André RB13-Oct-05 7:31 
GeneralRe: Missing pointer between threads Pin
David Crow13-Oct-05 10:18
David Crow13-Oct-05 10:18 
AnswerRe: Missing pointer between threads Pin
LighthouseJ13-Oct-05 8:19
LighthouseJ13-Oct-05 8:19 

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.