MapWindow Developer Team : MapWindow Discussion Forum
I'm getting the following error when I try to Edit:Update Preview. There seem to be a number of changes around this problem. Could I be missing a file or reference? ------------------------------------------------------------------- Error occured in InvokeDispM
PreviewMap problem
Posted by:
jlkittle ()
Date: July 05, 2005 09:20AM
I'm getting the following error when I try to Edit:Update Preview.
There seem to be a number of changes around this problem. Could I be missing a file or reference?
-------------------------------------------------------------------
Error occured in InvokeDispMethod:
Unknown name.
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at System.Windows.Forms.IPictureDisp.get_PictureType()
at System.Windows.Forms.AxHost.GetPictureFromIPictureDisp(Object picture)
at MapWindow.clsImageUtilities.IPictureDispToImage(Object image) in C:\dev\MapWindow40\MapWindow\Classes\clsImageUtilities.vb:line 39
at MapWindow.mPublics.ObjectToImage(Object Picture, Int32 newWidth, Int32 newHeight) in C:\dev\MapWindow40\MapWindow\Modules\modPublics.vb:line 465
at MapWindow.PreviewMap.GetPictureFromMap() in C:\dev\MapWindow40\MapWindow\Classes\clsPreviewMap.vb:line 89
Jack
There seem to be a number of changes around this problem. Could I be missing a file or reference?
-------------------------------------------------------------------
Error occured in InvokeDispMethod:
Unknown name.
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at System.Windows.Forms.IPictureDisp.get_PictureType()
at System.Windows.Forms.AxHost.GetPictureFromIPictureDisp(Object picture)
at MapWindow.clsImageUtilities.IPictureDispToImage(Object image) in C:\dev\MapWindow40\MapWindow\Classes\clsImageUtilities.vb:line 39
at MapWindow.mPublics.ObjectToImage(Object Picture, Int32 newWidth, Int32 newHeight) in C:\dev\MapWindow40\MapWindow\Modules\modPublics.vb:line 465
at MapWindow.PreviewMap.GetPictureFromMap() in C:\dev\MapWindow40\MapWindow\Classes\clsPreviewMap.vb:line 89
Jack
Re: PreviewMap problem
Posted by:
cmichaelis ()
Date: July 05, 2005 09:51AM
I've got this fixed now, I've posted the correction on SVN. I had been calling GetPictureFromIPictureDisp instead of GetPictureFromIPicture - once upon a time they were both valid, but it seems that the former is no longer in AxHost. Maybe this was a change in one of the recent .NET service packs...
Thanks for pointing this one out to me.
--Chris
Thanks for pointing this one out to me.
--Chris
Re: PreviewMap problem
Posted by:
jlkittle ()
Date: July 05, 2005 11:13AM
Chris:
That seems to have fixed it.
Thanks.
Jack
That seems to have fixed it.
Thanks.
Jack
Sorry, only registered users may post in this forum.


