0x4C56 ----- Original Message ----- From: "Dan Sugalski" <[EMAIL PROTECTED]> To: "Vladimir Lipsky" <[EMAIL PROTECTED]> Cc: "perl6-internals" <[EMAIL PROTECTED]> Sent: Wednesday, December 31, 2003 10:49 PM Subject: Re: More Windows dev questions: Core dumps
> At 11:51 PM +0300 12/31/03, Vladimir Lipsky wrote: > >From: "Dan Sugalski" <[EMAIL PROTECTED]> > > > >> On a Unix system, a core dump is a file with a raw (mostly) copy of a > >> process' current memory image that's written whenever a process does > >> something profoundly illegal, like accessing an inaccessible section > >> of memory with no trap handler that allows recovery or something of > >> the sort. They're handy, because it means you can go and debug a > >> process after the fact, and don't have to be there on the spot to > >> figure out what's going on. Really handy for things that die > >> overnight, or when you're not around, and you don't want the defunct > >> process hanging around until you can attach to it with a debugger. > >> > >> Does Windows do this? (I know other OSes, like VMS, do *not* do it) > > > >No, Windows does not use core files. If you run your code outside of a > >debugger and a problem occurs you will be given the option of either > >debugging the code or killing the executing process. > > Bummer. Ah, well, one of the few Unix development things that I really like. Well, debug prompts not that bad. Still better than nothing. > > > If so, how do I enable it? If not, I presume there's some reasonably > >> simple way to attach a debugger to a process that's died. (I hope) > > > >Yeah. That's it. A debugger. Do you have one? If no, try to pull WinDbg > >about. > > > >http://www.microsoft.com/whdc/ddk/debugging/default.mspx?gssnb=1 > > > >It's free for downloading. You will find some "HOW TO" there either. > > I've probably got that installed already with the VS/.NET kit, but if Oh! Then you might have got it. I read somewhere that one can do a crash dump, an windows equivalent of unix core dumpes, with windbg. So if you wish, you could look for how to create that thing in docs. > Dan 0x4C56