[comp.windows.ms] MOVEABLE DISCARDABLE

wilf@tko-sony-6.hut.fi (Johan Wilhelm Wikman) (03/15/90)

Hi

When should one not mark a TEXT segment as MOVEABLE or
MOVEABLE DISCARDABLE

thanks

Johan Wikman
wilf@niksula.hut.fi

bturner@hpcvlx.cv.hp.com (Bill Turner) (03/17/90)

> When should one not mark a TEXT segment as MOVEABLE or
> MOVEABLE DISCARDABLE

The only reason I can think of not making code MOVEABLE is if you have an
interrupt vector into said code (not really a good idea under Windows, but
people have their reasons...)

The only reason for not making code DISCARDABLE is for handling out of memory
errors.

--Bill Turner (bturner@hp-pcd.hp.com)
HP Interface Technology Operation

PA126318@tecmtyvm.mty.itesm.mx (Alfredo Delgado-Garza) (03/21/90)

Hi.

You should mark as FIXED only the segments that contain filters. or use
interrupt vectors.

I also found that if you are using large model all segments must be
FIXED other wise the system crashes.

But in medium or small model I have used all segments MOVEABLE even the
filters. With no trouble. The docs say that only filter procedures must
be fixed.

Alfredo