EDN Admin
Well-known member
Dear friends<br/>
I developed an application which communicates to a printer via a dll using dllImport. However, when an exception occurs in the application I try to execute a process which also uses this dll. By doing so the following error occurs: Attempt to read or write
in protected memory. The instantiation is as follows:
public partial class Default : System.Web.UI.Page<br/>
{<br/>
DllImport("mp2032.dll")] <br/>
public static extern int ConfiguraModeloImpressora(int ModeloImpressora);
Any suggestion on how to overcome this problem?<br/>
Thanks in advance <hr class="sig Duan Brito - Analista de Sistemas/Programador
View the full article
I developed an application which communicates to a printer via a dll using dllImport. However, when an exception occurs in the application I try to execute a process which also uses this dll. By doing so the following error occurs: Attempt to read or write
in protected memory. The instantiation is as follows:
public partial class Default : System.Web.UI.Page<br/>
{<br/>
DllImport("mp2032.dll")] <br/>
public static extern int ConfiguraModeloImpressora(int ModeloImpressora);
Any suggestion on how to overcome this problem?<br/>
Thanks in advance <hr class="sig Duan Brito - Analista de Sistemas/Programador
View the full article