[Mono-devel-list] NullReferenceException in GetHostByName_internal
Francisco Figueiredo Jr.
fxjrlists at yahoo.com.br
Tue May 18 22:09:27 EDT 2004
Hi all,
I'm getting NullReferenceException in unmanaged code when trying to run
Npgsql tests with nunit-console. Kamil Skalski also is getting this problem.
.System.NullReferenceException: Object reference not set to an instance
of an object
in (unmanaged)
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/install/lib/libmono.so.0(mono_class_from_name+0xa6)
[0x550d945a]
in (unmanaged)
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/install/lib/libmono.so.0
[0x550b54fc]
in (unmanaged)
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/install/lib/libmono.so.0
[0x550b7034]
in (unmanaged)
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/install/lib/libmono.so.0
[0x550b75c8]
in <0x0002d> (wrapper managed-to-native)
System.Net.Dns:GetHostByName_internal (string,string&,string[]&,string[]&)
in [0x00013] (at
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/mcs/class/System/System.Net/Dns.cs:141)
System.Net.Dns:GetHostByName (string)
in [0x00007] (at
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/mcs/class/System/System.Net.Sockets/TcpClient.cs:298)
System.Net.Sockets.TcpClient:Connect (string,int)
in [0x00010] (at
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/mcs/class/System/System.Net.Sockets/TcpClient.cs:93)
System.Net.Sockets.TcpClient:.ctor (string,int)
in [0x00021] (at
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/mcs/class/Npgsql/Npgsql/NpgsqlClosedState.cs:62)
Npgsql.NpgsqlClosedState:Open (Npgsql.NpgsqlConnection)
in [0x002b0] (at
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/mcs/class/Npgsql/Npgsql/NpgsqlConnection.cs:400)
Npgsql.NpgsqlConnection:Open ()
in <0x0004f> (wrapper remoting-invoke-with-check)
Npgsql.NpgsqlConnection:Open ()
in [0x00006] (at
/home/fxjr/Desenvolvimento/CVSRepositories/MonoCommit/mcs/class/Npgsql/Test/ConnectionTests.cs:63)
NpgsqlTests.ConnectionTests:Open ()
Do you have any idea about what can be causing that?
The strange part is that I have some other standalone apps with the same
code which works nice, on the same runtime!!
Is there anything I can do to track this problem? Debugger tips? I'm
getting problems compiling debugger from cvs...
../frontends/scripting/Interpreter.cs(87) error CS0117:
`Mono.Debugger.DebuggerOptions' does not contain a definition for `IsScript'
../frontends/scripting/Interpreter.cs(102) error CS1501: No overload for
method `Create' takes `1' arguments
../frontends/scripting/Interpreter.cs(102) error CS8006: Could not find
any applicable function for this argument list
../frontends/scripting/Interpreter.cs(297) error CS1501: No overload for
method `Create' takes `1' arguments
../frontends/scripting/Interpreter.cs(297) error CS8006: Could not find
any applicable function for this argument list
../frontends/scripting/Interpreter.cs(410) error CS0117:
`Mono.Debugger.Module' does not contain a definition for `SymbolFile'
../frontends/scripting/Interpreter.cs(491) error CS0117:
`Mono.Debugger.Module' does not contain a definition for `SymbolFile'
../frontends/scripting/Interpreter.cs(570) error CS0117:
`Mono.Debugger.ThreadGroup' does not contain a definition for
`DeleteThreadGroup'
../frontends/scripting/Interpreter.cs(660) error CS0117:
`Mono.Debugger.DebuggerBackend' does not contain a definition for
`LoadLibrary'
../frontends/scripting/Interpreter.cs(678) error CS0117:
`Mono.Debugger.BreakpointHandle' does not contain a definition for
`SourceLocation'
../frontends/command-line/Main.cs(71) error CS0117:
`Mono.Debugger.DebuggerOptions' does not contain a definition for `IsScript'
ExpressionParser.jay(90) warning CS0162: Unreachable code detected
../frontends/scripting/Command.cs(616) error CS0117:
`Mono.Debugger.IArchitecture' does not contain a definition for
`PrintRegisters'
../frontends/scripting/Expression.cs(226) error CS0117:
`Mono.Debugger.Languages.ILanguage' does not contain a definition for
`CanCreateInstance'
../frontends/scripting/Expression.cs(229) error CS0117:
`Mono.Debugger.Languages.ILanguage' does not contain a definition for
`CreateInstance'
../frontends/scripting/Expression.cs(266) error CS0117:
`Mono.Debugger.Languages.ILanguage' does not contain a definition for
`CanCreateInstance'
../frontends/scripting/Expression.cs(269) error CS0117:
`Mono.Debugger.Languages.ILanguage' does not contain a definition for
`CreateInstance'
../frontends/scripting/Expression.cs(340) error CS0117:
`Mono.Debugger.Languages.IVariable' does not contain a definition for
`CanWrite'
../frontends/scripting/Expression.cs(349) error CS0117:
`Mono.Debugger.Languages.IVariable' does not contain a definition for
`SetObject'
../frontends/scripting/Expression.cs(400) error CS0117:
`Mono.Debugger.IMethod' does not contain a definition for `DeclaringType'
../frontends/scripting/Expression.cs(404) error CS0117:
`Mono.Debugger.IMethod' does not contain a definition for `HasThis'
../frontends/scripting/Expression.cs(408) error CS0117:
`Mono.Debugger.IMethod' does not contain a definition for `DeclaringType'
../frontends/scripting/ScriptingContext.cs(255) error CS0117:
`Mono.Debugger.Process' does not contain a definition for `Name'
../frontends/scripting/ScriptingContext.cs(866) error CS0246: Cannot
find type `ITargetTypeAlias'
../frontends/scripting/ScriptingContext.cs(832) error CS0161: Not all
code paths return a value
../frontends/scripting/Style.cs(260) error CS0246: Cannot find type
`ITargetTypeAlias'
../frontends/scripting/Style.cs(187) error CS0161: Not all code paths
return a value
Compilation failed: 26 error(s), 1 warnings
make[2]: *** [mdb.exe] Error 1
Thanks in advance.
--
Regards,
Francisco Figueiredo Jr.
Membro Fundador do Projeto MonoBrasil - MonoBrasil Project Founder Member
http://monobrasil.softwarelivre.org
-------------
"Science without religion is lame;
religion without science is blind."
~ Albert Einstein
More information about the Mono-devel-list
mailing list