Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ocamldebug and windows
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dmitry Bely <dbely@m...>
Subject: Re: [Caml-list] ocamldebug and windows
Xavier Leroy <> writes:

>> Ocaml debugger normally implements checkpoins via fork() syscall, which is
>> not available under Win32. But why simply not to use
>> ReadProcessMemory()/WriteProcessMemory() Win32 API functions to
>> save/restore the process memory image?
> You need a bit more than this: file and socket handles also need some
> checkpointing (of the kind that fork() does on file descriptors in the
> Unix world).

Really? Correct me if I am wrong, but fork() should care of the proper
handle copying because it creates the new child process, that should be in
the same state. But I suggest to use the only process, just save/restore
its state somethere when needed. This way the memory dump seems to be
sufficient, no?

Excuse me if this discussion becomes off-topic. I just wish Ocaml success in
Win32 world :-)

- Dmitry Bely

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: