Jump to content
Sign in to follow this  
João Fernandes dos Santos

Programa fechando sozinho Visual Studio 2012 - has exited with code -2

Recommended Posts

erro: has exited with code -2147483645 (0x80000003)

 

 

 

pessoal quando executo meu programa e rodo uma função minha aplicação para de funcionar e simplesmente fecha o form.

 

ja tentei fazer limpezas, debug, clear, excluir pastar temporárias e nada.

 

fiz um teste e criei uma aplicação do zero e só coloquei essa função para rodar e ocorre o mesmo erro.

 

 

Alguêm ja passou por esse erro acima?

 

 

aguardo.

Share this post


Link to post
Share on other sites

essa é a função:

Public Declare Function ConsultarSAT Lib "dllsat.dll" (ByVal NumeroSessao As Short) As String

no click do botão chamo ela assim:

   Dim sRetorno As String
        Dim lSessao As Short
        Randomize()
        sRetorno = Space(100)
        lSessao = Int(Rnd(99) * 100)
        sRetorno = ConsultarSAT(lSessao)
        MessageBox.Show(sRetorno)

Ou seja ela acessa uma DLL ja instalada no Windows.

 

Obs: Estava funcionando normalmente, depois que começou a dar esse erro.

Share this post


Link to post
Share on other sites

Segue a descrição do erro do VS completo:

'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PROGRAMADOR\Desktop\Desenvolvimento\Caixa\WindowsApplication1\bin\Debug\WindowsApplication1.exe', Symbols loaded.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsApplication1.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The program '[4436] WindowsApplication1.exe: Managed (v4.0.30319)' has exited with code -2147483645 (0x80000003).

Share this post


Link to post
Share on other sites

Esta opção ja estava marcada.

Mas reparei algo hoje, peguei uma aplicação semelhante que me enviaram e ela roda normalmente no meu computador acessando a mesma DLL, mas a minha aplicação que estou desenvolvendo no VS2012 persiste o problema.

pode ser meu VS2012?

Share this post


Link to post
Share on other sites

Ola, amigos, consegui resolver, era problema com framework esta na versão 4 coloquei a 3.5 e funfou.

Porém agora me deparei com esse problema

" Tentativa de leitura ou gravação em memória protegida. Normalmente, isso é uma indicação de que outra memória está danificada."

Quando chamo a função assim:

  sRetorno = EnviarDadosVenda(lSessao, sCodAtiv, vXML)

Minha Função é essa que acessa a DLL:

    Public Declare Function EnviarDadosVenda Lib "dllsat.dll" (ByVal NumeroSessao As Short, ByVal codigoDeAtivacao As String, ByVal dadosVenda As String) As String

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.