Click here to Skip to main content
15,896,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question about Int64. Pin
Tim Smith22-Apr-03 4:40
Tim Smith22-Apr-03 4:40 
GeneralRe: Question about Int64. Pin
George222-Apr-03 16:26
George222-Apr-03 16:26 
GeneralRe: Question about Int64. Pin
John R. Shaw22-Apr-03 16:42
John R. Shaw22-Apr-03 16:42 
GeneralRe: Question about Int64. Pin
George222-Apr-03 19:43
George222-Apr-03 19:43 
GeneralPixels - char (difficult) Pin
JensB22-Apr-03 3:52
JensB22-Apr-03 3:52 
GeneralRe: Pixels - char (difficult) Pin
Hans Ruck22-Apr-03 4:01
Hans Ruck22-Apr-03 4:01 
GeneralRe: Pixels - char (difficult) Pin
Jim Crafton22-Apr-03 4:40
Jim Crafton22-Apr-03 4:40 
GeneralCrash address, doesn't exist in .MAP file Pin
dandy7222-Apr-03 3:39
dandy7222-Apr-03 3:39 
I have a client reporting that some of my code crashes on a few of his machines; I can't reproduce the problem on my end (what else is new) and all I have to work with is the crash address he's reporting.

I've had a look at Wouter Dhondt's excellent article on .MAP files[^]...and if I'm following the steps properly, the crash occurs in a memcpy() call...great, according to a search in my project's .cpp files, I'm calling it explicitely 74 times. Since I can't reproduce the crash there's hardly any point in stepping through all of them. Besides, if I understand correctly, the call to memcpy() might not necessarily be any of my own (ie, another C runtime library function might be doing it; who knows which one it is).

Taking it to the next step, I tried to determine what file/line the crash occurs in according to the .MAP file. Again based on the article, subtracting the load address (0x00400000) and the 0x1000 bytes PE header from the crash address (0x00459083), I end up with 0x00058xxx, which is nowhere near any of the addresses listed in the bottom part of the .MAP file. And since I'm within 0x004xxxxx, I'm pretty confident the crash doesn't occur in a DLL. I *know* I'm using the proper .MAP file as I've rebuilt the project (this time set to generate the .MAP file) and sent the client the recompiled EXE (which turned out to be identical to the previous one anyway).

I've tried to get the client to send me Dr. Watson logs and crash dumps, but none seem to ever get generated despite the options being selected (he's on Win2K SP2).

What next? I don't like the idea of sending a client an EXE with MsgBox() calls...
GeneralRe: Crash address, doesn't exist in .MAP file Pin
Tim Smith22-Apr-03 3:53
Tim Smith22-Apr-03 3:53 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
dandy7222-Apr-03 4:28
dandy7222-Apr-03 4:28 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
Tim Smith22-Apr-03 4:42
Tim Smith22-Apr-03 4:42 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
dandy7222-Apr-03 5:10
dandy7222-Apr-03 5:10 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
Tim Smith22-Apr-03 6:19
Tim Smith22-Apr-03 6:19 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
dandy7222-Apr-03 8:13
dandy7222-Apr-03 8:13 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
Tim Smith22-Apr-03 9:03
Tim Smith22-Apr-03 9:03 
GeneralRe: Crash address, doesn't exist in .MAP file Pin
dandy7222-Apr-03 10:46
dandy7222-Apr-03 10:46 
Questionwhere can I find a tutorial about raw socket programming? Pin
George222-Apr-03 3:34
George222-Apr-03 3:34 
AnswerRe: where can I find a tutorial about raw socket programming? Pin
valikac22-Apr-03 9:05
valikac22-Apr-03 9:05 
GeneralRe: where can I find a tutorial about raw socket programming? Pin
George222-Apr-03 16:28
George222-Apr-03 16:28 
AnswerRe: where can I find a tutorial about raw socket programming? Pin
Phil Hamer22-Apr-03 12:50
Phil Hamer22-Apr-03 12:50 
GeneralRe: where can I find a tutorial about raw socket programming? Pin
George222-Apr-03 16:28
George222-Apr-03 16:28 
GeneralRe: where can I find a tutorial about raw socket programming? Pin
Phil Hamer22-Apr-03 17:14
Phil Hamer22-Apr-03 17:14 
GeneralC++ related Pin
John-theKing22-Apr-03 3:11
John-theKing22-Apr-03 3:11 
GeneralRe: C++ related Pin
Paul D'hertoghe22-Apr-03 3:39
professionalPaul D'hertoghe22-Apr-03 3:39 
GeneralRe: C++ related Pin
Jim Crafton22-Apr-03 4:41
Jim Crafton22-Apr-03 4: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.