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()
The Life is Beautiful!
Programmer in
Delphi, VS.NET
MCP