Click here to Skip to main content
15,896,063 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Does a program have more than 1 process in task manager? Pin
Mark Salsbery14-Jun-07 9:20
Mark Salsbery14-Jun-07 9:20 
GeneralRe: Does a program have more than 1 process in task manager? Pin
led mike14-Jun-07 10:50
led mike14-Jun-07 10:50 
GeneralRe: Does a program have more than 1 process in task manager? Pin
Mark Salsbery14-Jun-07 11:26
Mark Salsbery14-Jun-07 11:26 
QuestionWhy doesn't this work? Pin
myhanguk14-Jun-07 2:16
myhanguk14-Jun-07 2:16 
AnswerRe: Why doesn't this work? Pin
prasad_som14-Jun-07 3:01
prasad_som14-Jun-07 3:01 
AnswerRe: Why doesn't this work? Pin
Mark Salsbery14-Jun-07 9:28
Mark Salsbery14-Jun-07 9:28 
QuestionRe: Why doesn't this work? Pin
Ahmed Ismail Mohamed15-Jun-07 22:50
Ahmed Ismail Mohamed15-Jun-07 22:50 
QuestionSerialize with BinaryFormatter Pin
hansipet14-Jun-07 0:56
hansipet14-Jun-07 0:56 
Hello,
I have a strange problem. I want to send some objectes over Ethernet (UDP One packet is one object) After that I Deserialize the data, but I get allways an exception that there is an Invalid binaryheader. I don't have any idea how I can solve it.

my code is
<br />
		int size = socket.Receive(buf);<br />
		BinaryFormatter serializer;<br />
		MemoryStream^ ms = gcnew MemoryStream(buf,0,size);<br />
		ms->Seek(0, SeekOrigin::Begin);<br />
		LogMessage^ logMessage = (LogMessage^)serializer.Deserialize(ms);<br />
		Console::WriteLine("{0}", logMessage->ToString());<br />
		ms->Close();<br />


and the sending function:
<br />
			MemoryStream^ ms = gcnew MemoryStream();<br />
			//XmlSerializer serializer(LogMessage::typeid);<br />
			BinaryFormatter serializer;<br />
<br />
			serializer.Serialize(ms, logMessage);<br />
			ms->Flush();<br />
			ms->Seek(0, SeekOrigin::Begin);<br />
<br />
			array<unsigned char>^ data = ms->ToArray();<br />
			socket->Send(data);<br />
			ms->Close();<br />


I have checked the MemoryStream and there is the whole data available (Sending and receiving)

Best regards
Hansjörg
QuestionBooks for Managed C++ Pin
vibindia13-Jun-07 16:58
vibindia13-Jun-07 16:58 
AnswerRe: Books for Managed C++ Pin
Christian Graus14-Jun-07 12:46
protectorChristian Graus14-Jun-07 12:46 
Questionreading XML using SAX method? Pin
andyspartyshop13-Jun-07 5:16
andyspartyshop13-Jun-07 5:16 
AnswerRe: reading XML using SAX method? Pin
Christian Graus14-Jun-07 12:47
protectorChristian Graus14-Jun-07 12:47 
QuestionAbout const char*& Pin
Nandu_77b13-Jun-07 2:21
Nandu_77b13-Jun-07 2:21 
AnswerRe: About const char*&amp; Pin
Mark Salsbery13-Jun-07 4:57
Mark Salsbery13-Jun-07 4:57 
GeneralRe: About const char*&amp; Pin
Nandu_77b18-Jun-07 3:14
Nandu_77b18-Jun-07 3:14 
GeneralRe: About const char*&amp; Pin
Mark Salsbery18-Jun-07 4:59
Mark Salsbery18-Jun-07 4:59 
QuestionHow to fill a sector Pin
romcab13-Jun-07 0:07
romcab13-Jun-07 0:07 
AnswerRe: How to fill a sector Pin
Christian Graus13-Jun-07 13:57
protectorChristian Graus13-Jun-07 13:57 
Questioncast to a stored type Pin
Xeef12-Jun-07 11:56
Xeef12-Jun-07 11:56 
QuestionRe: cast to a stored type Pin
Mark Salsbery12-Jun-07 14:10
Mark Salsbery12-Jun-07 14:10 
QuestionSDL game engine Pin
HawkAgent12-Jun-07 2:39
HawkAgent12-Jun-07 2:39 
Question Stop Closing the main Dialog when a child Dailog is open? Pin
granshah @ eVisionISF12-Jun-07 2:33
granshah @ eVisionISF12-Jun-07 2:33 
AnswerRe: Stop Closing the main Dialog when a child Dailog is open? Pin
Christian Graus12-Jun-07 11:30
protectorChristian Graus12-Jun-07 11:30 
Questionwindows schedular is not working Pin
srinivassam11-Jun-07 20:43
srinivassam11-Jun-07 20:43 
AnswerRe: windows schedular is not working Pin
Christian Graus11-Jun-07 21:16
protectorChristian Graus11-Jun-07 21:16 

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.