|
| <prev next> |
Re: Exception while sending message to MSMQ: msg#00028windows.devel.jawin
Hi, > ----------------------------------- > org.jawin.COMException: 8000ffff: Unable to serialize variant: ... > Object[] q = new Object[]{msmqQInfo}; > Variant v1 = new Variant(); > v1.boolVal = false; > Variant[] v = new Variant[]{v1}; > msmqMessage.Send(q, v); > ------------------------------------------------------------------------ You may declare the Variant type of v1 explicitly: v1.vt = VarTypes.VT_BOOL; But i suppose that will lead to the next Exception: "COMException: A VT_VARIANT must be combined with VT_BYREF (base vartype 12)". Combining the Type with a VT_ARRAY and/or a VT_BYREF leads to "Unable to serialize variant" Exception again. I think the problem isn't specific to invoking the msmqMessage.Send method but to passing a variant array as an argument. It seems that there existst nor any documentation how to pass a variant array as an argument nor a working example for that: The example at http://discuss.develop.com/archives/wa.exe?A2=ind0307e&L=jawin&D=0&T=0&P=1722 doesn't work for me. And the description at http://jawinproject.sourceforge.net/jawinuserguide_dispatch.html#dispatchptr_usage_methods_arrays isn't sufficient, at least for me. HTH Florian -- http://www.florian-schmitt.net |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Exception while sending message to MSMQ: 00028, Cal vin |
|---|---|
| Previous by Thread: | Exception while sending message to MSMQi: 00028, Cal vin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |