Michael Sabo
2/9/2007 1:17:00 PM
Hello,
is in C# no way to realize this problem?
{
object x = new xy();
callback = new CBDelegate(callback_func);
c_call_callback(callback, ref x);
....
<wait until finished long operation>
GC.SuppressFinalize(callback);
}
private callback(ref object context)
{
if( context is xy )
{
xy x = (xy)context;
}
}
Calling the callback with type int or IntPtr is no problem, but 'ref object'
(defined as signatur in CBDelegate) occours a VARIANT exception.
Thanks
Michael