Hi
I have developed some software using vb.net 2002 Version 7.0.9466
The software accesses a 3rd party dll so I have had to use
tlbimp.exe/com-interop etc.. to access it.
When I use the software on my computer it will work fine,but
it keeps having these intermittent crashes(just hangs),
which involves restarting the program.
The crashes, always occur when it accesses the 3rd party dll.
I have installed the software on 2 desktop PC's and it works fine.
On one PC I ran the software for 5 days and not a single hang.
My laptop is a Dell M90 and has had a new motherboard and video card
installed. This did not fix the problem. Recently I have also
had a new hard disk installed (so a rebuild) but this hasnt fixed the
problem either.
I have also tried it in safe mode(XP Professional) but the hangs
still occur
Example of the Vb.net code to access the DLL
'Define the dLL object
Dim oMFWSB As New MOSSSystemBuild .MFWSystemBuild ()
' Access the dll
Dim iErrRet as Integer 'Error/Success value
Dim strMxModel as String ="Opt01"
Dim strMxMask as String ="X"
Dim StrMxStr as String 'String returned from following command
iRet = oMFWSB.MFWGetSt rings(strMxMode l, strMxMask, strMxStr)
'Release the dll
Marshal.Release ComObject(oMFWS B)
GC.Collect() : GC.WaitForPendi ngFinalizers()
oMFWSB=nothing
Any new ideas !!
I have developed some software using vb.net 2002 Version 7.0.9466
The software accesses a 3rd party dll so I have had to use
tlbimp.exe/com-interop etc.. to access it.
When I use the software on my computer it will work fine,but
it keeps having these intermittent crashes(just hangs),
which involves restarting the program.
The crashes, always occur when it accesses the 3rd party dll.
I have installed the software on 2 desktop PC's and it works fine.
On one PC I ran the software for 5 days and not a single hang.
My laptop is a Dell M90 and has had a new motherboard and video card
installed. This did not fix the problem. Recently I have also
had a new hard disk installed (so a rebuild) but this hasnt fixed the
problem either.
I have also tried it in safe mode(XP Professional) but the hangs
still occur
Example of the Vb.net code to access the DLL
'Define the dLL object
Dim oMFWSB As New MOSSSystemBuild .MFWSystemBuild ()
' Access the dll
Dim iErrRet as Integer 'Error/Success value
Dim strMxModel as String ="Opt01"
Dim strMxMask as String ="X"
Dim StrMxStr as String 'String returned from following command
iRet = oMFWSB.MFWGetSt rings(strMxMode l, strMxMask, strMxStr)
'Release the dll
Marshal.Release ComObject(oMFWS B)
GC.Collect() : GC.WaitForPendi ngFinalizers()
oMFWSB=nothing
Any new ideas !!
Comment