GetCount_management seems to crash ArcGis

Discussion created by sshenberger on Dec 30, 2013
Latest reply on Dec 30, 2013 by sshenberger
Not sure if I am posting this in the right forum. Has anyone created an addin that performs a record count? I have an addin that I am trying to create that has a record count at the very start and every time I run the addin Arcmap crashes. The odd part is I can copy and past the same code into the Python window in Arcmap and the code works just fine. This makes me think its something with the addin creation but I dont have an idea of what could be causing it. Machine stats Win 7 32GB RAM Intel i7
reccount = str(arcpy.GetCount_management ("NullServiceAddresses"))
win32api.MessageBox(0, "Script Starting  " + reccount + " records will be fixed", "Status")

Thank You

Scott Shenberger
GIS Analyst
Tucson Water