473,722 Members | 2,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

very strange serializtion exception

Hi All,
I had working code that made custom serialization on objects that inherit from queue
in the inherited queue I create my own GetObjectData:
public void GetObjectData(S erializationInf o info, StreamingContex t ctxt)

{

lock (this.SyncRoot)

{

IEnumerator Ienum = this.GetEnumera tor();

int i = 0;

MyObj _Obj = null;

while (Ienum.MoveNext ())

{

i++;

_Obj = (MyObj)Ienum.Cu rrent;

info.AddValue(" MyObj_" + i.ToString(), Ienum.Current);

}

info.AddValue(" Count", i);

info.AddValue(" StoreFileName", StoreFileName);

}

}

this code work correctly

after move couple of methods from internal class to the parent class ( I don't speak about the classes that make the serialization , only about the class that call the code that Will cause the serialization in my inherited queue objects )

I start to receive :

Fail: Type 'System.Net.Soc kets.Socket' in Assembly 'System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' is not marked as serializable.
Fail: Type 'System.Net.Soc kets.Socket' in Assembly 'System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' is not marked as serializable. at System.Runtime. Serialization.F ormatterService s.InternalGetSe rializableMembe rs(RuntimeType type)
at System.Runtime. Serialization.F ormatterService s.GetSerializab leMembers(Type type, StreamingContex t context)
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.InitMemberIn fo()
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.InitSerializ e(Type objectType, ISurrogateSelec tor surrogateSelect or, StreamingContex t context, SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter converter)
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.Serialize(Ty pe objectType, ISurrogateSelec tor surrogateSelect or, StreamingContex t context, SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter converter)
at System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Write(WriteObje ctInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Serialize(Objec t graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Serialize(St ream serializationSt ream, Object graph, Header[] headers, Boolean fCheck)
at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Serialize(St ream serializationSt ream, Object graph)
at ... -here is my hosted class that call the method that cause the serialization

I don't have any Socket objects not in the my queue class nor in the inside object !

also when debugging step by step the Exception thrown without any control not in specific line!

any suggestions ?

thanks

Oct 20 '06 #1
6 1898
Considerig it says

"is not marked as serializable"

You have probably added some dependancy to a class that is not marked as Serializable. Just a thought.
"semedao" <se*****@commun ity.nospamwrote in message news:uy******** ******@TK2MSFTN GP04.phx.gbl...
Hi All,
I had working code that made custom serialization on objects that inherit from queue
in the inherited queue I create my own GetObjectData:
public void GetObjectData(S erializationInf o info, StreamingContex t ctxt)

{

lock (this.SyncRoot)

{

IEnumerator Ienum = this.GetEnumera tor();

int i = 0;

MyObj _Obj = null;

while (Ienum.MoveNext ())

{

i++;

_Obj = (MyObj)Ienum.Cu rrent;

info.AddValue(" MyObj_" + i.ToString(), Ienum.Current);

}

info.AddValue(" Count", i);

info.AddValue(" StoreFileName", StoreFileName);

}

}

this code work correctly

after move couple of methods from internal class to the parent class ( I don't speak about the classes that make the serialization , only about the class that call the code that Will cause the serialization in my inherited queue objects )

I start to receive :

Fail: Type 'System.Net.Soc kets.Socket' in Assembly 'System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' is not marked as serializable.
Fail: Type 'System.Net.Soc kets.Socket' in Assembly 'System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' is not marked as serializable. at System.Runtime. Serialization.F ormatterService s.InternalGetSe rializableMembe rs(RuntimeType type)
at System.Runtime. Serialization.F ormatterService s.GetSerializab leMembers(Type type, StreamingContex t context)
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.InitMemberIn fo()
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.InitSerializ e(Type objectType, ISurrogateSelec tor surrogateSelect or, StreamingContex t context, SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter converter)
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.Serialize(Ty pe objectType, ISurrogateSelec tor surrogateSelect or, StreamingContex t context, SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter converter)
at System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Write(WriteObje ctInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Serialize(Objec t graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Serialize(St ream serializationSt ream, Object graph, Header[] headers, Boolean fCheck)
at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Serialize(St ream serializationSt ream, Object graph)
at ... -here is my hosted class that call the method that cause the serialization

I don't have any Socket objects not in the my queue class nor in the inside object !

also when debugging step by step the Exception thrown without any control not in specific line!

any suggestions ?

thanks

Oct 20 '06 #2
Set the debugger to break on any thrown CLR exception. Then go up the
stack to

System.Runtime. Serialization.F ormatterService s.GetSerializab leMembers(Type
type, StreamingContex t context)

and check the locals for "type" to find out what class holds a Socket.
Walk down the stack as necessary, and you'll be able to find out which
of your objects is the culprit.

semedao wrote:
Hi All,
I had working code that made custom serialization on objects that inherit from queue
in the inherited queue I create my own GetObjectData:
public void GetObjectData(S erializationInf o info, StreamingContex t ctxt)

{

lock (this.SyncRoot)

{

IEnumerator Ienum = this.GetEnumera tor();

int i = 0;

MyObj _Obj = null;

while (Ienum.MoveNext ())

{

i++;

_Obj = (MyObj)Ienum.Cu rrent;

info.AddValue(" MyObj_" + i.ToString(), Ienum.Current);

}

info.AddValue(" Count", i);

info.AddValue(" StoreFileName", StoreFileName);

}

}

this code work correctly

after move couple of methods from internal class to the parent class ( I don't speak about the classes that make the serialization , only about the class that call the code that Will cause the serialization in my inherited queue objects )

I start to receive :

Fail: Type 'System.Net.Soc kets.Socket' in Assembly 'System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' is not marked as serializable.
Fail: Type 'System.Net.Soc kets.Socket' in Assembly 'System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' is not marked as serializable. at System.Runtime. Serialization.F ormatterService s.InternalGetSe rializableMembe rs(RuntimeType type)
at System.Runtime. Serialization.F ormatterService s.GetSerializab leMembers(Type type, StreamingContex t context)
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.InitMemberIn fo()
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.InitSerializ e(Type objectType, ISurrogateSelec tor surrogateSelect or, StreamingContex t context, SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter converter)
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.Serialize(Ty pe objectType, ISurrogateSelec tor surrogateSelect or, StreamingContex t context, SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter converter)
at System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Write(WriteObje ctInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Serialize(Objec t graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Serialize(St ream serializationSt ream, Object graph, Header[] headers, Boolean fCheck)
at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Serialize(St ream serializationSt ream, Object graph)
at ... -here is my hosted class that call the method that cause the serialization

I don't have any Socket objects not in the my queue class nor in the inside object !

also when debugging step by step the Exception thrown without any control not in specific line!

any suggestions ?

thanks

------=_NextPart_000_ 000C_01C6F477.4 B309B00
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 5221

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2>I had working code that made custom serialization
on objects that inherit from queue</FONT></DIV>
<DIV><FONT face=Arial size=2>in the inherited queue I create my own
GetObjectData:</FONT>
<P><FONT face=Arial size=2>public void GetObjectData(S erializationInf o info,
StreamingContex t ctxt)</FONT></P>
<P><FONT face=Arial size=2>{</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; lock (this.SyncRoot) </FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; {</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; &nbsp;&nbsp;&nb sp; IEnumerator
Ienum = this.GetEnumera tor();</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; &nbsp;&nbsp;&nb sp; int i =
0;</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp;&nbsp ;&nbsp;&nbsp;&n bsp; MyObj _Obj
= null;</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; &nbsp;&nbsp;&nb sp; while
(Ienum.MoveNext ())</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; &nbsp;&nbsp;&nb sp; {</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; &nbsp;&nbsp;&nb sp;
&nbsp;&nbsp;&nb sp; i++;</FONT></P>
<P><FONT face=Arial
size=2>&nbsp;&n bsp;&nbsp;&nbsp ;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp ;&nbsp;&nbsp; _Obj =
(MyObj)Ienum.Cu rrent;</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; &nbsp;&nbsp;&nb sp;
&nbsp;&nbsp;&nb sp; info.AddValue(" MyObj_" + i.ToString(),
Ienum.Current); </FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; &nbsp;&nbsp;&nb sp; }</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; &nbsp;&nbsp;&nb sp;
info.AddValue(" Count", i);</FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; &nbsp;&nbsp;&nb sp;
info.AddValue(" StoreFileName", StoreFileName); </FONT></P>
<P><FONT face=Arial size=2>&nbsp;&n bsp;&nbsp; }</FONT></P>
<P><FONT face=Arial size=2>}</FONT></P>
<P><FONT face=Arial size=2></FONT>&nbsp;</P>
<P><FONT face=Arial size=2>this code work correctly</FONT></P>
<P><FONT face=Arial size=2>after move couple of methods from internal class to
the parent class&nbsp; ( I don't speak about the classes that make the
serialization , only about the class that call the code that Will cause the
serialization in my inherited queue objects )</FONT></P>
<P><FONT face=Arial size=2>I start to receive :</FONT></P>
<P><FONT face=Arial size=2>Fail: Type 'System.Net.Soc kets.Socket' in Assembly
'System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' is
not marked as serializable.<B R>Fail: Type 'System.Net.Soc kets.Socket' in
Assembly 'System, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9' is not marked as
serializable.&n bsp;&nbsp;&nbsp ; at
System.Runtime. Serialization.F ormatterService s.InternalGetSe rializableMembe rs(RuntimeType
type)<BR>&nbsp; &nbsp; at
System.Runtime. Serialization.F ormatterService s.GetSerializab leMembers(Type type,
StreamingContex t context)<BR>&nb sp;&nbsp; at
System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.InitMemberIn fo()<BR>&nbsp;& nbsp;
at
System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.InitSerializ e(Type
objectType, ISurrogateSelec tor surrogateSelect or, StreamingContex t context,
SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter
converter)<BR>& nbsp;&nbsp; at
System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.Serialize(Ty pe
objectType, ISurrogateSelec tor surrogateSelect or, StreamingContex t context,
SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter
converter)<BR>& nbsp;&nbsp; at
System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Write(WriteObje ctInfo
objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)<B R>&nbsp;&nbsp; at
System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Serialize(Objec t
graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean
fCheck)<BR>&nbs p;&nbsp; at
System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Serialize(St ream
serializationSt ream, Object graph, Header[] headers, Boolean
fCheck)<BR>&nbs p;&nbsp; at
System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Serialize(St ream
serializationSt ream, Object graph)<BR>&nbsp ;&nbsp; at ... -&gt; here is my
hosted class that call the method that cause the serialization</FONT></P>
<P><FONT face=Arial size=2></FONT>&nbsp;</P>
<P><FONT face=Arial size=2>I don't have any Socket objects not in the my queue
class nor in the inside object !</FONT></P>
<P><FONT face=Arial size=2>also when debugging step by step the Exception thrown
without any control not in specific line!</FONT></P>
<P><FONT face=Arial size=2>any suggestions ?</FONT></P>
<P><FONT face=Arial size=2>thanks</FONT></P></DIV></DIV></BODY></HTML>

------=_NextPart_000_ 000C_01C6F477.4 B309B00--
Oct 20 '06 #3
Hi Semedao,

Based on my understanding, you meet the SerializationEx ception for
'System.Net.Soc kets.Socket' class, however, you can not identify which
object in your serialization Queue object referenced to the Socket class.
If I have misunderstood you, please feel free to tell me, thanks.

Martin has provided the correct approach for troubleshooting the root
cause. Below is some additionally information:

As we can see from the stack, the final managed method that caused the
exception is
System.Runtime. Serialization.F ormatterService s.InternalGetSe rializableMembe r
s method. So I lauched the Reflector tool to view the source code of this
method in .Net2.0 FCL. I find that it is the code snippet below that throws
the SerializationEx ception:

private static MemberInfo[] InternalGetSeri alizableMembers (RuntimeType type)
{
.......
RuntimeType type1 = (RuntimeType) type.BaseType;
......
Type[] typeArray1 = null;
int num1 = 0;
bool flag1 = FormatterServic es.GetParentTyp es(type1, out
typeArray1, out num1);
if (num1 <= 0)
{
return infoArray1;
}
list1 = new ArrayList();
for (int num2 = 0; num2 < num1; num2++)
{
type1 = (RuntimeType) typeArray1[num2];
if (!FormatterServ ices.CheckSeria lizable(type1))
{
throw new
SerializationEx ception(string. Format(CultureI nfo.CurrentCult ure,
Environment.Get ResourceString( "Serialization_ NonSerType"), new object[] {
type1.FullName, type1.Module.As sembly.FullName }));
}
.....
}

Yes, this code snippet logic retrieves the passed in "type"'s "BaseType"
and gets its parent types to fill the "typeArray1 " variable. At last, it
will use FormatterServic es.CheckSeriali zable() method to check each element
in the typeArray1. If any element is not serializable it will throw the
SerializationEx ception.

So you should configure the debugger with the correct symbols server and
uncheck the "Just-My-Code" feature of VS2005, so that you can correct break
on the FormatterServic es.InternalGetS erializableMemb ers() when the
exception is thrown.

1. Symbol Server path.
To set the symbol server path, you should input
"srv*c:\LocalSy mbols*http://msdl.microsoft. com/download/symbols;" in the
Tools | Options | Debugging | Symbols as the directory. This will tell the
VS2005 debugger to lookup symbol from the Microsoft symbol server
"http://msdl.microsoft. com/download/symbols" and cache the downloaded
symbol in "c:\LocalSymbol s" folder.

2. Just My Code setting
VS2005 contains a new feature named "Just-My-Code". Defaultly, JMC is
enabled, which means that VS2005 will not load symbol for non-user code. To
debug non-user code, we should disable this feature from Tools | Options |
Debugging, "Enable Just My Code" check box.(the VS2005 IDE maybe need
close&re-open to enable the
setting)
For more information about JMC, please refer to the blog link below:
"How can I debug Just My Code?"
http://blogs.msdn.com/jmstall/archiv...31/344832.aspx

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 23 '06 #4
Oh, I forget to mention that once the debugger breaks on the
FormatterServic es.InternalGetS erializableMemb ers() method(Use the "Call
Stack" window to verify this), you may open the "Locals" window, it will
report all the local variables with the passed parameters. So you may view
the "type" parameter passed in the InternalGetSeri alizableMembers () method
to get a clue. If you still can not understand what this type comes from,
you may need to walk down the stack as Martin suggested.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 23 '06 #5
thanks Jeffrey
I solved it
""Jeffrey Tan[MSFT]"" <je***@online.m icrosoft.comwro te in message
news:3u******** ******@TK2MSFTN GXA01.phx.gbl.. .
Oh, I forget to mention that once the debugger breaks on the
FormatterServic es.InternalGetS erializableMemb ers() method(Use the "Call
Stack" window to verify this), you may open the "Locals" window, it will
report all the local variables with the passed parameters. So you may view
the "type" parameter passed in the InternalGetSeri alizableMembers () method
to get a clue. If you still can not understand what this type comes from,
you may need to walk down the stack as Martin suggested.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

Oct 23 '06 #6
Cool, glad to hear that. If you need further help, please feel free to
post, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 24 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1874
by: Nedelcho Stanev | last post by:
Hello All, I have strange problem with libodbc++ ( 0.2.3 or 0.2.2 ). i'm using mysql-4.0.14 , MyODBC-3.51.06 and unixODBC-2.2.6 configured with following options 1.MySQL ../configure --prefix=/usr/local/test --with-openssl --with-mysqld-user=root --enable-thread-safe-client --with-pthread --enable-shared
2
1969
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from std::exception. We have a base class which all processes derive from which is always instantiated in main surrounded by a try/catch(std::exception) which catches all exceptions that have not be handled at a higher level. The catch block cleans up and...
3
3168
by: Don McNamara | last post by:
Hi, I've hit quite a strange problem with XmlSerializer on my W2K3 server. When I serialize/deserialize using an exe on my local computer (XP), everything works fine. When I put the code out on the server (W2K3) it throws an exception. It only seems to happen when serializing/deserializing _arrays_ of a type. If I just serialize/deserialize one instance, it works fine. The exception I get is: (sorry for the word wrapping.)...
2
1783
by: TB | last post by:
I am seeing a very strange problem as follows... I have a loop where a fair amount of processing is going on and near the top of the loop I access a class that has only static helper functions to perform some calculations. After some number of iterations, randomly, I'll get an uncaught NullValueException error on one of these calls, as if the class name is being treated as an object reference and is null. Here is some psuedo-code to...
2
1340
by: Chris | last post by:
Hi, a strange behaviour when working with exceptions : when I divide and integer by 0 will an exception be thrown. OK but, when I divide a double by 0 is no exception thrown ??? How come ? Try it out.
4
1586
by: Stan | last post by:
This code has been working for a long time: try { Server.Transfer ("Order.aspx"); } catch (Exception ex) { /// }
6
1795
by: Robin Riley | last post by:
Hi, I have a .NET solution that contains a dll project and a tester application project which, of course, invokes the dll. The dll project has exception handling in it. What's happening is that when I run the executable from within the .NET studio environment, thrown exceptions are caught and handled correctly (both debug and release mode). However, if I run the executable from outside the .NET studio, none of the exceptions get caught....
1
8185
by: Don Rixtown | last post by:
I ran into a very strange error tonight. I was working with web services and typed datasets. The web server I was using happens to be on the other end of a virtual network (Hamachi). Everything was working fine. I added one more row of data to the table and all of a sudden one web method started failing. I initially thought the web service was timing out but after a while the following exception was thrown: The CLR has been unable to...
13
10390
by: Jen | last post by:
One user of my application is experiencing an exception "input string not in correct format". But it makes no sense where it is occurring. It is occurring when a string from a textbox ("172") is being convert to an Int16 (using Convert.ToInt16). How can that be? There are other text boxes that are used in the identical fashion and they don't generate the exception. All there are many other machines running my application that don't...
0
8863
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8739
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9238
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5995
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4502
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3207
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2602
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.