M
Marc Hillman
I've been bashing my head up against a brick wall for 4 days, and I've
reached the limit of my frustration and knowledge. I'd appreciate some ideas
on what I'm doing wrong.
I have a simple Visual Basic Express 2008 program. It calls a DLL (supplied
by others). Calls to the DLL in small (trivial) programs work fine. When the
program grows in size I get a "vshost.exe has stopped working" message. It
happens when I call any dll function that tries to return a string. I have
googled and tried everything.
The full program is a few thousand lines, much of it auto coded because of
database access, but the critical bits are below.
In fileOziExplorer.vb
Imports System.Text
Module OziExplorer
Declare Ansi Function oziGetOziVersion Lib "oziapi" (ByRef Version As
StringBuilder, ByRef DataLength As Integer) As Integer
End Mdule
In file Form1.vb
Dim oziVersion As New StringBuilder(250), vDatalength As Integer
i = oziGetOziVersion(oziVersion, vDatalength)
When the i=oziGetOziVersion is called I get the vshost error message.
I have hacked vshost.exe to disable DEP.
I'm totally out of ideas. All the obvious fixes have been tried.
reached the limit of my frustration and knowledge. I'd appreciate some ideas
on what I'm doing wrong.
I have a simple Visual Basic Express 2008 program. It calls a DLL (supplied
by others). Calls to the DLL in small (trivial) programs work fine. When the
program grows in size I get a "vshost.exe has stopped working" message. It
happens when I call any dll function that tries to return a string. I have
googled and tried everything.
The full program is a few thousand lines, much of it auto coded because of
database access, but the critical bits are below.
In fileOziExplorer.vb
Imports System.Text
Module OziExplorer
Declare Ansi Function oziGetOziVersion Lib "oziapi" (ByRef Version As
StringBuilder, ByRef DataLength As Integer) As Integer
End Mdule
In file Form1.vb
Dim oziVersion As New StringBuilder(250), vDatalength As Integer
i = oziGetOziVersion(oziVersion, vDatalength)
When the i=oziGetOziVersion is called I get the vshost error message.
I have hacked vshost.exe to disable DEP.
I'm totally out of ideas. All the obvious fixes have been tried.