6/11/08

swaprun

Últimamente los micro-cortes en la red de la oficina son frecuentes. Como consecuencia de esto tuvimos unos problemas con el servidor web que ya contaré. Pero también con las aplicaciones cliente / servidor: y es que cuando se ejecutan en red (lo normal aquí) y falla la red simplemente se "evaporan", se cierra la aplicación sin decir ni mu.

Ayer me encontré con esto:

Windows loads your program into RAM lazily, on-demand. When it loses the connection to the network drive, and your application tries to load a page that wasn't already in RAM, Windows has no choice but to throw an exception. Note that Windows also discards pages that haven't been touched recently if you're above your minimum working set size.

To force an image launched from across the network to be loaded into RAM before being executed, pass the /SWAPRUN:NET option to the linker


Lo activé en el vs2008, recompilé y ya he puesto la nueva versión. Espero que ya no haya tortazos similares.