Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionProblem in remoting Pin
Mic Mathi6-Aug-07 20:55
Mic Mathi6-Aug-07 20:55 
AnswerRe: Problem in remoting Pin
Parwej Ahamad6-Aug-07 23:55
professionalParwej Ahamad6-Aug-07 23:55 
GeneralRe: Problem in remoting Pin
Mic Mathi7-Aug-07 0:15
Mic Mathi7-Aug-07 0:15 
GeneralRe: Problem in remoting Pin
Parwej Ahamad7-Aug-07 0:19
professionalParwej Ahamad7-Aug-07 0:19 
GeneralRe: Problem in remoting Pin
Elayaraja Sambasivam7-Aug-07 1:11
Elayaraja Sambasivam7-Aug-07 1:11 
Questiondeserialization problem Pin
cyn86-Aug-07 20:45
cyn86-Aug-07 20:45 
AnswerRe: deserialization problem Pin
Tormod Fjeldskaar6-Aug-07 21:01
Tormod Fjeldskaar6-Aug-07 21:01 
GeneralRe: deserialization problem Pin
cyn86-Aug-07 21:11
cyn86-Aug-07 21:11 
i need to save all the arraylists into a common arraylist and then serialize it because i want to save it into a file. Is this correct?

Below is part of the code i wrote:
In Save()
<br />
ArrayList arr = new ArrayList();<br />
<br />
arr.Add(Arraylist1);//arraylist containing Point[]<br />
for(int i=0;i<br />
{<br />
GraphicsPathData gpd = new GraphicsPathData((GraphicsPath)PathList[i]);<br />
Stream gpdStream = GraphicsPathData.Serialize(gpd);<br />
arr.Add(gpdStream);<br />
}<br />
<br />
arr.Add(Arraylist1);//arraylist containing enum<br />
<br />
formatter.Serialize(myStream, arr);<br />
myStream.Close();<br />
<br />



in OpenFile()
<br />
ArrayList arr =new ArrayList();<br />
			if (openFileDialog.ShowDialog() == DialogResult.OK)<br />
			{<br />
				filename = openFileDialog.FileName;<br />
				Stream myStream = openFileDialog.OpenFile();<br />
				if (myStream != null)<br />
				{<br />
					IFormatter formatter = new BinaryFormatter();<br />
					arr = (ArrayList) formatter.Deserialize(myStream);<br />
					myStream.Close();<br />
<br />
.................


However the problem here, how can i separate the arr into the correct arraylist?


Thanks for your help
AnswerRe: deserialization problem Pin
Tormod Fjeldskaar6-Aug-07 21:16
Tormod Fjeldskaar6-Aug-07 21:16 
GeneralRe: deserialization problem Pin
cyn819-Aug-07 16:32
cyn819-Aug-07 16:32 
QuestionButton Appearance on the form ? Pin
Janu_M6-Aug-07 20:42
Janu_M6-Aug-07 20:42 
AnswerRe: Button Appearance on the form ? Pin
satsumatable6-Aug-07 21:22
satsumatable6-Aug-07 21:22 
GeneralRe: Button Appearance on the form ? Pin
satsumatable6-Aug-07 21:28
satsumatable6-Aug-07 21:28 
GeneralRe: Button Appearance on the form ? Pin
Janu_M6-Aug-07 22:19
Janu_M6-Aug-07 22:19 
QuestionCross thread operation not valid Pin
satsumatable6-Aug-07 20:34
satsumatable6-Aug-07 20:34 
GeneralRe: Cross thread operation not valid Pin
sunil20046-Aug-07 20:48
sunil20046-Aug-07 20:48 
AnswerRe: Cross thread operation not valid Pin
blackjack21506-Aug-07 20:59
blackjack21506-Aug-07 20:59 
GeneralRe: Cross thread operation not valid Pin
lmoelleb6-Aug-07 21:07
lmoelleb6-Aug-07 21:07 
GeneralRe: Cross thread operation not valid Pin
satsumatable6-Aug-07 21:20
satsumatable6-Aug-07 21:20 
GeneralRe: Cross thread operation not valid Pin
lmoelleb6-Aug-07 22:51
lmoelleb6-Aug-07 22:51 
AnswerRe: Cross thread operation not valid Pin
Hessam Jalali6-Aug-07 21:32
Hessam Jalali6-Aug-07 21:32 
AnswerRe: Cross thread operation not valid Pin
Vasudevan Deepak Kumar7-Aug-07 0:53
Vasudevan Deepak Kumar7-Aug-07 0:53 
Questiondeployment in window Pin
Sonia Gupta6-Aug-07 20:12
Sonia Gupta6-Aug-07 20:12 
AnswerRe: deployment in window Pin
Bhupi Bhai6-Aug-07 21:02
Bhupi Bhai6-Aug-07 21:02 
GeneralRe: deployment in window Pin
Sonia Gupta6-Aug-07 21:17
Sonia Gupta6-Aug-07 21:17 

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.