VB and C# Integration

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MAF

    #1

    VB and C# Integration

    I have a C# program that references an Interop and then invokes a method in
    a VB dll.

    My system will work fine if the vbp is loaded in memory but will lock up the
    system and the memory grows to about 1 gig.

    Any ideas on what might cause this. No excpetion is thrown

    Here is the signature of the VB app

    Public Function GetScheduleVolu me(ByVal Connstring As String, ByVal XMLIDS
    As String, ByVal StartDate As Date, ByVal EndDate As Date, ByVal strError As
    String) As colItems


    Here is how it is called from C#

    //this line works

    TMConversion.cl sConversion aHelper = new TMConversion.cl sConversionClas s();

    //This line fails

    TMConversion.co lItems colItems =
    aHelper.GetSche duleVolume(this .m_Connstring, XMLCOl, aStartDate, aEndDate,
    strErrors);


Working...