doubt in Deleagte

  • Thread starter Thread starter Baskar RajaSekharan
  • Start date Start date
B

Baskar RajaSekharan

Hi ,

I am having One CommandButton and Spred in my Form. When i Click
the CommandButton, We send some Call to the Sever , which will send the
Result via Deleagte. In the Callback of Delegate i am refreshing the
spread. ie Increaing the Maximum row count of the spread and doing some
manipulateion.

Actual problem : When I keepon testing the Button, The Delegate Fires
properly and the Spread get refreshed without any problem. After i gave a
10 minits intervel and then came and press the TestButton, the Delegate is
getting fired but while accesing the Spread Control the Exception is thrown
by saying Object type mismatch. What could be the problem? I used Invoke,
but still the problem is comming. The behaviour is very starange. Is
there any problem in delegate?

Regards,
R.Baskar
 
Baskar,

When you say you are sending a call to the server, are you using
remoting? If you are, then it is very possible that the lease has expired
on the remoted object, and that is the cause of your exception.

Hope this helps.
 
Hi,

Thank you for your reply. I am not using remoting. That's the server is
avilable in the Same machine. Server is nothing but Com Component. There is
no need to use remoting. I wrongly used the word Server. sorry.Now let me
know what could be the problem? Is there any problem in FarPoint spread?

Regards,

R.Baskar

Nicholas Paldino said:
Baskar,

When you say you are sending a call to the server, are you using
remoting? If you are, then it is very possible that the lease has expired
on the remoted object, and that is the cause of your exception.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Baskar RajaSekharan said:
Hi ,

I am having One CommandButton and Spred in my Form. When i Click
the CommandButton, We send some Call to the Sever , which will send the
Result via Deleagte. In the Callback of Delegate i am refreshing the
spread. ie Increaing the Maximum row count of the spread and doing some
manipulateion.

Actual problem : When I keepon testing the Button, The Delegate Fires
properly and the Spread get refreshed without any problem. After i gave a
10 minits intervel and then came and press the TestButton, the Delegate is
getting fired but while accesing the Spread Control the Exception is thrown
by saying Object type mismatch. What could be the problem? I used Invoke,
but still the problem is comming. The behaviour is very starange. Is
there any problem in delegate?

Regards,
R.Baskar
 
Baskar,

Can you show the stack trace to the exception?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Baskar RajaSekharan said:
Hi,

Thank you for your reply. I am not using remoting. That's the server is
avilable in the Same machine. Server is nothing but Com Component. There is
no need to use remoting. I wrongly used the word Server. sorry.Now let me
know what could be the problem? Is there any problem in FarPoint spread?

Regards,

R.Baskar

message news:[email protected]...
Baskar,

When you say you are sending a call to the server, are you using
remoting? If you are, then it is very possible that the lease has expired
on the remoted object, and that is the cause of your exception.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Baskar RajaSekharan said:
Hi ,

I am having One CommandButton and Spred in my Form. When i Click
the CommandButton, We send some Call to the Sever , which will send the
Result via Deleagte. In the Callback of Delegate i am refreshing the
spread. ie Increaing the Maximum row count of the spread and doing some
manipulateion.

Actual problem : When I keepon testing the Button, The Delegate Fires
properly and the Spread get refreshed without any problem. After i
gave
a Delegate
is
 
Back
Top