Project

General

Profile

Defect #697

Program hangs when calling a .Net COM

Added by Diego Pwalls almost 11 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Start date:
06/12/2013
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

My COM application is built using Visual Studio 2008. Some options a form that has a Crystal Reports Viewer embedded and when I try to print from that Crystal Report I get an error, when I try to export: the program hangs. Whenever I try to call an OpenFileDialog or SaveFileDialog, it also hangs. From what I've read, all of this are threading issues an they have been addressed in Jacob 1.7 and the plugin would need to use the ComThread class.

History

#1

Updated by Imre Tokai almost 11 years ago

Hello Diego,
Share sample solution, setup and work-flow to reproduce this issue, please. Your research guidelines are welcome, also.
Hanging can be caused by VS app, too. Can you try simple scenarios on your side to make sure that VS app works with Crystal Reports as expected?

Regards

#2

Updated by Diego Pwalls almost 11 years ago

Hi Imre.. thank your for the response. There is no issue with the VS DLL, as It can be called from other languages (Other .Net apps, VFP...). I have only seen it when calling from a Servoy App the OpenFileDialog, SaveFileDialog and when exporting from a Crystal Reports... none of this issues occur when calling from another application. From what I have read and tried, it is a threading issue that occurs when these dialogs get called. I found online that this is a common issue that could be overcome by "upgrading to JACOB 1.7 and using the ComThread class to implement COM threading manually". The latter part could only be made within the plugin. If needed, I can make a simple .Net DLL to see the issue.

#3

Updated by Imre Tokai almost 11 years ago

Hi Diego,
Share sample solution and work-flow to replicate your issue please, so debugging of the plugin can be started on another side.

Regards

#4

Updated by Scott Butler about 9 years ago

  • Status changed from New to Rejected

Closing from inactivity.

Also available in: Atom PDF