Exception C0000006 / changing Windows PE header settings?

230 views
Skip to first unread message

dougwoodrow

unread,
Mar 26, 2013, 7:10:14 AM3/26/13
to harbou...@googlegroups.com
My Harbour application occasionally causes external exception C0000006 errors when running on a Windows 2008 terminal server.
It appears they can be avoided by having the following flags set on the executable's PE header:


Does anyone here know the best way of setting these flags for a Harbour application?

I'm building with MingW, and I notice gcc -v --help shows there is a "--tsaware" option; can that be included in the .HBP file, and is it the same as IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE?

dougwoodrow

unread,
Apr 8, 2013, 2:04:06 PM4/8/13
to harbou...@googlegroups.com
To answer my own question: I don't know if it's the best way, but a simple way to do this is to use Daniel Pistelli's excellent CFF Explorer utility.
Reply all
Reply to author
Forward
0 new messages