Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing array by reference to a COM (VFP) server...
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00680175
Message ID:
00680192
Vues:
18
Have you tried storing an object reference in a property of COM comonent?

e.g.
Dim MiArray() as object OR
Dim MiArray(0,7) as Object

oSrv=Interaction.CreateObject("GyGServidorOle.clsConexion")

oSrv.oArray = MiArray
oSrv.MiMethod(MiArray)

You can use oArray in your method instead of passing it as a para?

>I need pass a dinamic array to a COM server (build with VFP 6)
>
>I can pass ok readonly arrays, buit i need grow and write the array(pass by ref) and return back the info to the .NET ASP.NET page (yes, i can use XML but this requiere a LOT of recode, if this can be done in 2-3 hours i don't ask this...)
>
>I do this:
>
>Dim MiArray() as object OR
>Dim MiArray(0,7) as Object
>
>' I don't import the COM server because this cause a lot of troubles
>
>oSrv=Interaction.CreateObject("GyGServidorOle.clsConexion")
>
>oSrv.MiMethod(MiArray)
>
>In this line a error occurs(This is the complete stackt trace:)
>
>[COMException (0x8002000d): The memory is blocked.]
> Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
> srvConstructorFormsNET.TDataManager.GuardarDocumentos(String lcXMLMaestro, String lcXMLDetalle, String lcXMLPago, EnumFormEstado Estado, String lcSqlMaestro, String lcSqlDetalle, String lcSqlPago) in D:\Proyectos\Clases\srvConstructorFormsNET\TDataManager.vb:40
> srvConstructorFormsNET.srvConstructorFomsNET.TAdminForms.Guardar() in D:\Proyectos\Clases\srvConstructorFormsNET\BuildFormsNET.vb:154
> ActiveNet.BarraHerramientas.BarraHerramientasBase_ButtonClick(Object sender, EventArgs e) in c:\inetpub\wwwroot\ActiveNet\BarraHerramientas.ascx.vb:46
> Microsoft.Web.UI.WebControls.Toolbar.OnButtonClick(Object sender, EventArgs e)
> Microsoft.Web.UI.WebControls.Toolbar.PostButtonClickEvent(ToolbarItem item)
> Microsoft.Web.UI.WebControls.Toolbar.RaisePostBackEvent(String eventArgument)
> Microsoft.Web.UI.WebControls.BasePostBackControl.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
> System.Web.UI.Page.ProcessRequestMain()
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform