I am using .NET 2.0 VS2005. I am writing a network application to allow users from other PC to talk my application (running at my PC) to print through my printer driver.
I got this runtime exception:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at PrintGateway.PrintEngine.OpenPrinter(String szPrinter, IntPtr& hPrinter, IntPtr pd)
at PrintGateway.PrintEngine.SendBytesToPrinter(Int32 flag, String szPrinterName, String docname, IntPtr pBytes, Int32 dwCount) in E:\PrintGateway\PrintEngine.cs:line 70
at PrintGateway.PrintEngine.SendStringToPrinter(String szPrinterName, String docname, String szString) in E:\PrintGateway\PrintEngine.cs:line 167
Pleaes help me. I promise to reward you the points.
2006-12-03
20:34:34
·
2 answers
·
asked by
championForever
2
in
Programming & Design