473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems after de-serializing...

Good day group!

I have created a nice filtering plugin system, where all filters derive
from a Filter class, and they pass a PictureData object between them.

I have a problem though. I am able to save the filter setup by
serializing the filter chain to a file, and there seems to be no
problems when de-serializing, as the filter chain will seem to
re-generate properly.

But problems arise when I add a new filter to the de-serialized chain -
it will not recognize the de-serialized PictureData object as being of
the same type of the PictureData object passed to it.

Does anybody have any experience with this kind of problem?

Thanks in advance.

Jan 23 '06 #1
4 1289
By the way (I forgot to add some information): I'm using VS2005 / .NET
2.0.

The classes Filter and PictureData have their own project, and are
compiled into a DLL which is shared with some other projects.

And the problem does NOT arise because I rebuilt the DLL between doing
the serializing and the de-serializing.

And I should add that there are NO problems when I use "builtin" types,
like e.g. System.Drawing.Bitmap.

Jan 23 '06 #2
I have solved the problem (not knowing exactly what caused it, which is
frustrating):

Just moved the PictureData class definition to its own project/DLL...

If someone can explain this, explanations are welcome!

Jan 23 '06 #3
I would think that it has something to do with the fact that the filters
and the picture data are not loaded before serialization. I'm just guessing
here.

If you could post an example, it would help in figuring it out.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<mo********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
I have solved the problem (not knowing exactly what caused it, which is
frustrating):

Just moved the PictureData class definition to its own project/DLL...

If someone can explain this, explanations are welcome!

Jan 23 '06 #4
Are you using the XML serializer provided by the .NET?

Jan 23 '06 #5

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

Similar topics

3
by: Antoine Bloncourt | last post by:
Hello everybody Sorry to bother you but I have a problem writing datas into a file ... I want to make a backup of my MySQL database and put the result into a ..sql file. To do this, I use...
1
by: black hawk | last post by:
Hello, i have a big problems, to install oracle 9i v9.2 Server to my "Windows XP" with Service Pack 2 and all security and other updates from Microsoft. The "Universall Installer" (Standard...
0
by: black hawk | last post by:
Hello, i have a big problems, to install oracle 9i v9.2 Server to my "Windows XP" with Service Pack 2 and all security and other updates from Microsoft. The "Universall Installer" (Standard...
32
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with...
17
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
3
by: The One | last post by:
Have created a form to pop up with 2 option I then wish to write the text that is in the option button chose back to the original form using the code below but it gives me an exception error so...
3
by: Greg Sabino Mullane | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A bad link in the ftp source directory inspired me to check the rest of it out: * Main README file needs updating. The URL is given as: ...
1
by: Mario Lacunza | last post by:
--------- Mensaje reenviado -------- De: Mario Lacunza <mario.lacunza@gmail.com> Para: Lista Python Ing <python-list@python.org> Asunto: Problems with PyGridTableBase Fecha: Sat, 09 Sep 2006...
1
by: jffialho | last post by:
Hi there, Could someone help me with, this error: I am trying to deploy some applications to a web server with II 6.0, which contains a SharePoint Portal and a ASP .NET application. So far so...
6
by: fpcreator2000 | last post by:
Hello everyone. I'm having problems with a page I've created that is used to insert data into a database. It uploads two files into two distinct folder, and it takes the filenames and inserts...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.