Hi Tibor

Thank You for your help. It works fine now.
Thanx again a lot.

Regards:
ptr

Tibor Biro wrote:

Hi Peter,

 

Mark the SQLCommand object as not serializable. Use the NonSerializable attribute for this. Then just create the object once the thread starts running.

 

Regards,

Tibor

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Péter Kolcsár
Sent: Friday, April 14, 2006 2:00 AM
To: [email protected]
Subject: [Alchemi-users] SqlCommand Serialization problem in GThread

 

Hello everybody!

In my diploma work I use Alchemi to construct a grid that helps me (I hope) to run
various sql queries on my database.
The problem is, when I write the grid thread, I need to use the SqlCommand object to
run queries, but runtime I've got the following error:

System.Runtime.Serialization.SerializationException:  The type System.Data.SqlClient.SqlCommand in Assembly System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as serializable.

My question is how can I run, or how can I embed into my grid thread an object that
works fine with sql databases? and without to get this serialization problem?

If somebody can help me, I thanks in advance.

Regards:
peter

------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ alchemi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alchemi-users
------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ alchemi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alchemi-users

Reply via email to