Community
Showing results for 
Search instead for 
Do you mean 
Reply

Sage ACT! Pro 2013 crashing when opening Histories

New Member
Posts: 5
Country: United_Kingdom

Sage ACT! Pro 2013 crashing when opening Histories

[ Edited ]

We came across a very weird issue. We have an application that creates History (History Type, Attachments) and append it to the contacts. The attachment is a PNG file that is located in a public folder (Everyone, Full Control). This works fine on the previous versions but on the Sage ACT! Pro 2013 it is crashing Sage and throwing:

 

 

Error 1

 

Additional information includes:

 

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: actsage.exe
Problem Signature 02: 15.0.301.0
Problem Signature 03: 502edee8
Problem Signature 04: System.Windows.Forms
Problem Signature 05: 4.0.30319.17451
Problem Signature 06: 4f6c38e6
Problem Signature 07: 93a
Problem Signature 08: 17
Problem Signature 09: System.InvalidOperationException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 2057
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

 

If the attachment icon is clicked directly it opens without problems.

 

Any hints?

Employee
Posts: 1,163
Country: USA

Re: Sage ACT! Pro 2013 crashing when opening Histories

Is this a framework level application or a plugin? Are you able to create history items with other attachments?

Matthew Wood
Act! SDK Support
Community Moderator
New Member
Posts: 5
Country: United_Kingdom

Re: Sage ACT! Pro 2013 crashing when opening Histories

This is a framework level application. It is completely outside Sage. Basically it just creates the History Items. I haven't tried with other attachments.

 

We have been using this application with previous versions in the past without any problem. We have just recompiled it changing the target to .NET 4.

 

The call to create the History item is something as below:

 

Act.Framework.Histories.History newHistory = this.m_actFramework.Histories.CreateHistory(contactToAmend, Guid.Empty, this.m_actFramework.Histories.GetHistoryTypes()[48], false, dtProcessed, dtProcessed, this.m_strFormName, Path.GetFileName(strImageFileName), docToLoad);

 

I believe that should be pretty straightforward.

Employee
Posts: 1,163
Country: USA

Re: Sage ACT! Pro 2013 crashing when opening Histories

I tested this method recently in version 15 and didn't have any issues so I know it should work.

 

I assume when you recompiled to .Net 4 that you also swapped out your references? When you debug through is it the CreateHistory call that's throwing the exception?

Matthew Wood
Act! SDK Support
Community Moderator
New Member
Posts: 5
Country: United_Kingdom

Re: Sage ACT! Pro 2013 crashing when opening Histories

Yes, I also swapped out the references to the new ones.

It only throws the exception when I try to open the History from Sage. It shows okay in the view. If I try to open the attachment from the attachment icon it loads perfectly. The exception is just thrown when trying to open the History Item (double-click on it).
Employee
Posts: 1,163
Country: USA

Re: Sage ACT! Pro 2013 crashing when opening Histories

Ok understood, it attaches fine but you can't open the attachment. 

 

Does this also happen with attachments not created by your application and have you tried with another file?

Matthew Wood
Act! SDK Support
Community Moderator
New Member
Posts: 5
Country: United_Kingdom

Re: Sage ACT! Pro 2013 crashing when opening Histories

Sorry, it attaches fine and I can open the attachment only if I click on the "attachment icon". If I try to open the History form, Sage crashes.
Bronze Elite Contributor
Posts: 2,518
Country: USA

Re: Sage ACT! Pro 2013 crashing when opening Histories

Windows 8?

New Member
Posts: 5
Country: United_Kingdom

Re: Sage ACT! Pro 2013 crashing when opening Histories

Nope. Windows 7.

 

Any ideas?

Employee
Posts: 1,163
Country: USA

Re: Sage ACT! Pro 2013 crashing when opening Histories

[ Edited ]

Does this only happen for attachments created programmatically? or do you get the same behavior from attachments created within the application?

 

Also, does this only happen on either the documents tab or history tab, or both?

Matthew Wood
Act! SDK Support
Community Moderator