The maximum value allowed was 128KB. I think this is an issue with cygwin (using 1.7.6 for testing) and how it interprets an int32. I've modified the define value from the int32 and put in an upper limit instead to test. Just an FYI in case someone else has this issue. Rob