I have problems with Add-Ins with this version.
For example, this code crash, if optimization is used, in line
lstrcpy(szFile+nLen, pP);ADDINAPI void WINAPI AddInCommandEx(int idCmd, LPCVOID pcvData)
{
if (idCmd == ID_CMD)
{
HWND hwnd = AddIn_GetActiveDocument(g_hwndMain);
AddIn_ClearOutput(g_hwndMain);
if (hwnd)
{
ADDIN_DOCUMENT_INFO aidi;
int nLen;
TCHAR szFile[260], *pP;
aidi.cbSize = sizeof(ADDIN_DOCUMENT_INFO);
AddIn_GetDocumentInfo(hwnd, &aidi);
nLen = lstrlen(aidi.szFilename);
if (nLen) {
//AddIn_WriteOutput(g_hwndMain, aidi.szFilename);
pP = aidi.szFilename + nLen - 1;
while(*pP && *pP != '.') pP--; // find ext
lstrcpy(pP+1, TEXT("obj"));
while(*pP && *pP != '\\') pP--; // find name
//AddIn_WriteOutput(g_hwndMain, pP);
nLen = AddIn_GetProjectSymbol(g_hwndProj, TEXT("POC_PROJECT_OUTPUTDIR"), szFile, sizeof(szFile));
//lstrcpy(&szFile[nLen], pP);
lstrcpy(szFile+nLen, pP);
//AddIn_WriteOutput(g_hwndMain, szFile);
DumpObj(g_hwndMain, szFile);
}
}
}
}
Attached version is without optimizations.