System.ExecutionEngineException

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

    #1

    System.ExecutionEngineException

    I am getting the above exception, although it only appears on the release
    build, when run outside of my dev studio.
    It points me to a function in a file, which all appears ok, but when I try
    to TRY CATCH the exception it sneaks through the net.

    Any help on how I can track down the offending comment would be much
    appreciated.... the code allegedly causing the exception looks something
    like........... ....
    It is managed code


    "
    someStruct *struct=NULL;
    MessageLine(m_p C,"some data DAT%.4d",device number);

    int numitems=m_pC->GetSomeData(de vicenumber, &arrayList);


    if(numitems>0)

    {

    anotherStructpt r *ptr=arrayList;

    for(int i=0; i<numarcs; i++)

    {

    ManagedStruct *temp=new ManagedStruct (); // make a managed version

    Marshal::PtrToS tructure(&ptr->description,te mp); // and marshal across

    // here we need to fix the description. (ANSI/UNICODE issue)

    temp->Location=Marsh al::PtrToString Ansi(ptr->description.Lo cation);

    passedArray->Add(temp);

    ptr=ptr->Next;

    }

    // now release the memory originally returned

    while(archlist)

    {

    ptr=arrayList;

    arrayList=ptr->Next;

    delete ptr; // was allocated with new !

    }

    }

    return numarcs;

    "


Working...