Subj : Using Prf* routines in window procs To : Vitus Jensen From : Coridon Henshaw Date : Sun Jun 25 2000 06:38 am On Thursday June 08 2028 at 00:43, Vitus Jensen wrote to Coridon Henshaw: CH>> I'm using them in a trivial post-it note program without any CH>> problems whatsoever. I'm only saving up to 64KiB, though. VJ> Are you using the OS2.INI or your own profile? I'm saving into OS2.INI from a WM_SAVEAPPLICATION message handler. Writing to user-specified configs isn't something you should be doing from the main thread, particularly if the configs could be on a floppy. VJ> But even if the user selected a network drive it would hang the PM if VJ> the network fails and my program uses PrfWriteProfileData() from VJ> WM_MOVE. There's no need to rewrite window position data on every WM_MOVE message. Just call WinQueryWindow() from a WM_SAVEAPPLICATION handler and write the window locations when the program exits. --- GoldED/2 3.0.1 * Origin: Life sucks and then you croak. (1:250/820) .