Microsoft Visual C# Express Edition does not support debugging the code specified by the project

Hi,

I have inherited a C# Windows application built using VS 2005 Professional or Team Edition, I am not sure which. I have built the solution successfully and the exe runs OK. However, I am unable to debug the application; whenever I try to debug or even press F5, I get the error:

Microsoft Visual C# Express Edition does not support debugging the code specified by the project.

By the way, I am calling an unmanaged C++ DLL from the application; I don't know whether this is relevant, but I thought I should mention it.

Thanks

Hossam



Answer this question

Microsoft Visual C# Express Edition does not support debugging the code specified by the project

  • Rpgforme

    Hi,

    This is the type of code that is used to declare the API functions in the C++ DLL called "LNIndexingDLL.dll":

    //Global Indexing DLL Functions

    [DllImport(@"D:\LangSearch\VC\LNIndexingDLL\Release\LNIndexingDLL.dll")]

    public static extern short InitializeGlobalIndexing(string GlobalIndexPath, string GlobalIndexName, byte IndexingOption, ref int SearchID, int MorphID);

    [DllImport(@"D:\LangSearch\VC\LNIndexingDLL\Release\LNIndexingDLL.dll")]

    public static extern void TerminateGlobalIndexing(int GlobalSearchID, int numMorphID);

    [DllImport(@"D:\LangSearch\VC\LNIndexingDLL\Release\LNIndexingDLL.dll")]

    public static extern void allocate_global_memory_buffers(int GlobalSearchID);

    [DllImport(@"D:\LangSearch\VC\LNIndexingDLL\Release\LNIndexingDLL.dll")]

    public static extern void allocate_global_arrays(int GlobalSearchID);

    The functions are then called in the code, as follows:

    lmMessage = InitializeGlobalIndexing(iIndex.IndexPath, iIndex.strIndexName, 1, numMorphID, out numGlobalIndexingID);

    if (lmMessage == LocalMessages.No_Errors)

    lmMessage = dio.CreateIndex(iIndex.igGroup.numGroupID, iIndex.strIndexName, DateTime.Now, false, out numIndexID);

    I hope this helps. One another thing I forgot to mention is that I use multi-threading in the application; I don't know whether this is supported in DEBUG mode.

    Many thanks and best regards

    Hossam


  • Beatrix

    hi,

    do you use p/invoke to call this c++ code

    best regards



  • Microsoft Visual C# Express Edition does not support debugging the code specified by the project