I need to send a long string to print through printer driver. below is the code. If the string is short, it is OK. But if the string is long (e.g., 1433 characters), the program will crash with StackOverflow Exception). Not sure if it got something to do with the IntPtr.