DrWatson Error in Event Log - MultiByteToWideChar

Hi,
We have VB6 application up and running having SQL 2k as database. It has about 50 and more user using at pick hrs.

Now the problem is, sometime, few user got error message and kicked off from the application. I analyze windows eventlog and found that type of error is DrWatson and some exception thrown for multibytetowidchar kind of.

I really don't have any idea what happening here. If anybody have any little idea abt this I can give descriptive and exact explaination to them and will discuss further.

Thanks
Viral

[567 byte] By [ViralParikh] at [2007-12-16]
# 1
Hi,

You don't really provide enough information to give a complete answer but here is what I would guess the problem is.

Your VB6 app takes input from the user and then processes that in your code. For example, the user provides text in a TextBox which you then send to the DB.

Your application is crashing while processing this data and that explains the DR Watson log. The DR Watson info about MultiByteToWideChar indicates that your application was not written to handle INtl characters.
I'll bet that when you do this your app with throw an exception at the offending location.

You can test this theory by debugging your application using the VB6 debugger and enter some Intl characters. Try things like; charaters in the extended ascii range or switch your regional settings to non English code page such as Chinese PRC etc.. and enter some multibyte characters from this code page.

Here's a pointer to testing your application with these kind of International conditions:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxcontestingforglobalizationlocalization.asp

cmccoll_MS at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...