BUG: Access Violation in BuildCommDCBID: Q201372
|
An access violation occurs during a call to BuildCommDCB.
In Windows 95 and 98, BuildCommDCB makes temporary changes to the DCB string passed in. As a result, the string passed into this API is pointed to a read only section of memory, and an access violation occurs.
To work around this problem, copy the string to a temporary memory buffer that has read and write access before calling BuildCommDCB.
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
This happens most frequently when a fixed string is passed into this API. Starting with Microsoft Visual C++ version 6.0, all hard coded fixed strings are stored as read only when a binary is loaded into memory. Prior to version 6.0, fixed strings were loaded into a read/write section of memory.
Additional query words: kbDSupport
Keywords : kbAPI kbCommBand kbKernBase kbGrpKernBase
Version : winnt:
Platform : winnt
Issue type : kbbug
Last Reviewed: April 11, 1999