Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help in a simple game Pin
Maxwell Chen2-Oct-03 16:31
Maxwell Chen2-Oct-03 16:31 
GeneralRe: Help in a simple game Pin
Snyp3-Oct-03 16:18
Snyp3-Oct-03 16:18 
GeneralRe: Help in a simple game Pin
spiritualfields2-Oct-03 18:20
spiritualfields2-Oct-03 18:20 
GeneralRe: Help in a simple game Pin
Snyp3-Oct-03 16:17
Snyp3-Oct-03 16:17 
GeneralTaskbar Text Pin
skallestad2-Oct-03 14:51
skallestad2-Oct-03 14:51 
GeneralRe: Taskbar Text Pin
Jagadeesh VN3-Oct-03 1:40
Jagadeesh VN3-Oct-03 1:40 
QuestionWhat version of Crystal Report have we got in VS.Net? Pin
Link26002-Oct-03 13:30
Link26002-Oct-03 13:30 
GeneralReally bizarre problem Pin
Joel Holdsworth2-Oct-03 12:55
Joel Holdsworth2-Oct-03 12:55 
It's starting to tick me off here! I have this template class (may or may not be relevant), and my code seems to crash somtimes. Thing is I can't see much more than just a vague pattern, and it seems to move around a lot. I think it's somthing to do with the heap... When I first tested the code, it somhow crashed within a _tcsdup command, somwhere within the allocation part. So as I havn't used this command too much in the past I just replaced it with
LPTSTR mystr = new TCHAR[_tcslen(str)+1];
_tcscpy(mystr, str);
That seemed to move the problem somewhere else:
newbuckets = new Bucket[newarraysize];
Bucket is a nested struct in my class. And newarraysize is sensible value around 11ish. Stepping inside stack scope, I came to a place in malloc.c (ln 211) right before things descend into assembler of ntdll.dll.
return HeapAlloc(_crtheap, 0, size);
Baffling because _crtheap seemed to have a value of 0x00320000 (or somthing), and size was not dissimilar to what I'd requested up above. Ok; then somthing triggered the problem to move elsewhere onto a memset function of mine; used to initialise this array of buckets with zeros. That was crashing on in some kind of inline assembly loop routine. So I replaced the memset command with a ZeroMemory, and that caused the problem to descend back on my string allocation routine above! WTF | :WTF: Has anyone seen this before? any ideas? any at all?


*¨¨`)
¸¸.·´ ¸.·*¨¨`)
(¸¸.·* ¸ .·*
¸¸.·*
(¸¸.~~> Joel Holdsworth.

GeneralRe: Really bizarre problem Pin
Tim Smith2-Oct-03 13:03
Tim Smith2-Oct-03 13:03 
GeneralRe: Really bizarre problem Pin
Joel Holdsworth2-Oct-03 13:07
Joel Holdsworth2-Oct-03 13:07 
GeneralCFont size Pin
@LX2-Oct-03 12:14
@LX2-Oct-03 12:14 
GeneralRe: CFont size Pin
alex.barylski2-Oct-03 17:14
alex.barylski2-Oct-03 17:14 
GeneralRe: CFont size Pin
@LX3-Oct-03 10:38
@LX3-Oct-03 10:38 
QuestionHow do I unload ActiveXObject in IE Pin
pbonner2-Oct-03 12:12
pbonner2-Oct-03 12:12 
AnswerRe: How do I unload ActiveXObject in IE Pin
igor19603-Oct-03 8:31
igor19603-Oct-03 8:31 
GeneralSpecify items to step over when using F11 in VC Pin
Grailman2-Oct-03 9:09
Grailman2-Oct-03 9:09 
GeneralRe: Specify items to step over when using F11 in VC Pin
vcplusplus2-Oct-03 10:44
vcplusplus2-Oct-03 10:44 
GeneralRe: Specify items to step over when using F11 in VC Pin
Grailman2-Oct-03 12:24
Grailman2-Oct-03 12:24 
GeneralRe: Specify items to step over when using F11 in VC Pin
vcplusplus2-Oct-03 14:24
vcplusplus2-Oct-03 14:24 
GeneralDetecting fastcall Pin
Gisle Vanem2-Oct-03 8:55
Gisle Vanem2-Oct-03 8:55 
Generaltab and space in CRichEditCtrl Pin
includeh102-Oct-03 7:49
includeh102-Oct-03 7:49 
GeneralRe: tab and space in CRichEditCtrl Pin
vcplusplus2-Oct-03 8:04
vcplusplus2-Oct-03 8:04 
GeneralRe: tab and space in CRichEditCtrl Pin
includeh102-Oct-03 9:20
includeh102-Oct-03 9:20 
GeneralYet Another Rich Edit Question Pin
Larry J. Siddens2-Oct-03 6:00
Larry J. Siddens2-Oct-03 6:00 
Generalregsvr32 sample debugging Pin
vancouver7772-Oct-03 5:55
vancouver7772-Oct-03 5:55 

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.