Error when use Saved event of BusinessBase

Error when use Saved event of BusinessBase

Old forum URL: forums.lhotka.net/forums/t/1328.aspx


phucphlq posted on Monday, September 25, 2006

Hi!

I am trying to use Saved event of BusinessBase, why do not make Serializable SavedEventArgs class?

I catch an exception when use Saved event. It required my Form must Serializable.

brembot replied on Monday, September 25, 2006

Please check if your class has the attributes of Serializable.

<Serializable()> _
Public Class MyClass
End Class

Cheers

phucphlq replied on Monday, September 25, 2006

My class already has the attributes of Serializable. If I don't use Saved event, it run normal.

Michael Hildner replied on Monday, September 25, 2006

Hello phucphlq,

I don't have an answer, but I'm curious. SavedEventArgs is new is 2.1. I was just perusing the code to see how it worked.

Can you post the code you're using to attach to the event? I mean, wiring up the event handler and the signature of the method that handles it?

I want to try to duplicate. I'm not really sure yet, but it looks like SavedEventArgs is either serializable or not serializable depending on who is using it. Check out the code in the Saved event of BusinessBase.

Regards,

Mike

RockfordLhotka replied on Monday, September 25, 2006

This bug in 2.1 was reported about a week ago and has been fixed in cvs. The actual 2.1 release should work fine.

Copyright (c) Marimer LLC