I have found the time in the day to do the testing since my daughter was sleeping so i waited until she woke up to go now to do some business

Well the oncompilerstarted event.getproject is returning a null pointer 0
The test I made
===================================================
void AutoVersioning::OnCompilerStarted(CodeBlocksEvent& event)
{
wxString print;
print.Printf(_T("m_Project: %d event.GetProject: %d"),m_Project,event.GetProject());
wxMessageBox(print); if (m_Project && IsAttached() && m_IsVersioned[m_Project])
{
if (m_Modified)
{
const bool doAutoIncrement = GetConfig().Settings.DoAutoIncrement;
const bool askToIncrement = GetConfig().Settings.AskToIncrement;
if (doAutoIncrement && askToIncrement)
{
if (wxMessageBox(_("Do you want to increment the version?"),_T(""),wxYES_NO) == wxYES)
{
CommitChanges();
}
}
else if(doAutoIncrement)
{
CommitChanges();
}
}
}
} // end of OnCompilerStarted
===================================================
Attached is a screenshot showing the results[attachment deleted by admin]