Click here to Skip to main content
15,890,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get passed milliseconds from Timer Pin
_groo_9-Apr-09 2:03
_groo_9-Apr-09 2:03 
GeneralRe: Get passed milliseconds from Timer Pin
Rob Philpott9-Apr-09 2:08
Rob Philpott9-Apr-09 2:08 
GeneralRe: Get passed milliseconds from Timer Pin
_groo_9-Apr-09 2:27
_groo_9-Apr-09 2:27 
GeneralRe: Get passed milliseconds from Timer Pin
Rob Philpott9-Apr-09 2:59
Rob Philpott9-Apr-09 2:59 
GeneralRe: Get passed milliseconds from Timer Pin
Luc 6480119-Apr-09 16:24
Luc 6480119-Apr-09 16:24 
AnswerRe: Get passed milliseconds from Timer [modified] Pin
_groo_9-Apr-09 2:17
_groo_9-Apr-09 2:17 
GeneralRe: Get passed milliseconds from Timer Pin
Xmen Real 9-Apr-09 2:39
professional Xmen Real 9-Apr-09 2:39 
QuestionProblem during deserialization Pin
lnmca9-Apr-09 0:24
lnmca9-Apr-09 0:24 
Hi All,

I am unable to deserialize the byte array to the object of structure on another machine,when i send it through TCP/IP by socket then there is no problem in serialization.,but problem occurs at the other side during deserialization.

It shows the error something like "unable to find assembly....."

I am using the following code....

private byte[] ObjectToByteArray(Object obj)
{
if (obj == null)
return null;
BinaryFormatter bf = new BinaryFormatter();
MemoryStream ms = new MemoryStream();
bf.Serialize(ms, obj);
return ms.ToArray();
}
// Convert a byte array to an Object
private Object ByteArrayToObject(byte[] arrBytes)
{
MemoryStream memStream = new MemoryStream(arrBytes);
BinaryFormatter binForm = new BinaryFormatter();
memStream.Position = 0;
//memStream.Write(arrBytes, 0, arrBytes.Length);
// memStream.Seek(0, SeekOrigin.Begin);
Object obj = (Object)binForm.Deserialize(memStream);
return obj;
}



Please help,it is urgent....


Regards
Lalit Narayan
AnswerRe: Problem during deserialization Pin
Rob Philpott9-Apr-09 0:51
Rob Philpott9-Apr-09 0:51 
GeneralRe: Problem during deserialization Pin
lnmca9-Apr-09 1:13
lnmca9-Apr-09 1:13 
GeneralRe: Problem during deserialization Pin
Rob Philpott9-Apr-09 1:21
Rob Philpott9-Apr-09 1:21 
GeneralRe: Problem during deserialization Pin
lnmca9-Apr-09 1:36
lnmca9-Apr-09 1:36 
GeneralRe: Problem during deserialization Pin
Rob Philpott9-Apr-09 1:57
Rob Philpott9-Apr-09 1:57 
GeneralRe: Problem during deserialization Pin
Giorgi Dalakishvili9-Apr-09 2:11
mentorGiorgi Dalakishvili9-Apr-09 2:11 
QuestionUDP Hole Punching/STUN tutorials/SDK? Pin
softwarejaeger9-Apr-09 0:21
softwarejaeger9-Apr-09 0:21 
AnswerRe: UDP Hole Punching/STUN tutorials/SDK? Pin
bewithram4-Jul-09 9:59
bewithram4-Jul-09 9:59 
AnswerRe: UDP Hole Punching/STUN tutorials/SDK? Pin
digichetan4-Sep-09 11:40
digichetan4-Sep-09 11:40 
GeneralRe: UDP Hole Punching/STUN tutorials/SDK? Pin
Cosby5-Dec-09 12:09
Cosby5-Dec-09 12:09 
AnswerRe: UDP Hole Punching/STUN tutorials/SDK? Pin
Cosby7-Dec-09 2:26
Cosby7-Dec-09 2:26 
GeneralRe: UDP Hole Punching/STUN tutorials/SDK? Pin
srdusad17-Apr-10 0:14
srdusad17-Apr-10 0:14 
Questionhow can i minimize my program i the sytem try ? Pin
ariyanna9-Apr-09 0:09
ariyanna9-Apr-09 0:09 
AnswerRe: how can i minimize my program i the sytem try ? Pin
DaveyM699-Apr-09 0:15
professionalDaveyM699-Apr-09 0:15 
AnswerRe: how can i minimize my program i the sytem try ? Pin
Giorgi Dalakishvili9-Apr-09 0:16
mentorGiorgi Dalakishvili9-Apr-09 0:16 
AnswerRe: how can i minimize my program i the sytem try ? Pin
jaypatel5129-Apr-09 20:46
jaypatel5129-Apr-09 20:46 
QuestionCreate dll Pin
Trih8-Apr-09 23:55
Trih8-Apr-09 23:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.