There’s a bug in
CStringConverter::WtoA() when the default system code page is set to a multi-byte code page. The result is that the call will fail with an exception stating that “The data area passed to a system call is too small”. This was due to some naive code page handling (or lack of handling) in the code that determined the required buffer size.
This bug will be fixed in release 6.4 of The Server Framework which does not currently have a release date. If you need the fix sooner please get in touch.