SkinFramework + CR XI = Crash |
Post Reply |
Author | |
cybeh
Groupie Joined: 27 December 2005 Location: Malaysia Status: Offline Points: 76 |
Post Options
Thanks(0)
Posted: 12 August 2007 at 8:29pm |
Hi,
I am using VB 6.0 SP6 Crystal Report XI MySQL 5.0 Xtreme SkinFramework 11.1.2 The entire application will be working fine until the user try to close application. Please note that this application will only crash on those machine without VB6.0, without Crystal Report XI, Codejock installed but, with all the relevent DLL installed. (by using merge module from Crystal Report, copy codejock ocx to system32, and run regsvr32). In short, this only happened on those end user machine but not developer machine. I tried to use SkinFramework 10.4.2 but seems like giving the same problem Please find attached for the sample application uploads/20070812_202627_TestCrash2.zip Please advice. |
|
Metodo_Sviluppo
Groupie Joined: 02 September 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
|
Same problem here, with SkinFramework version 11.2.0
I've tried to use SkinFramework.RemoveWindow passing the hWnd of the form that hosts the Crystal Reports ActiveX viewer, but now the application crashes in developer machine too
I'll try to detect which dlls the application loads into memory in both situations (developer and end-user machine) hoping to find out if there are some dll missing from the user machine that needs to be present in order to avoid the crash.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
try add SkinFramework1.ExcludeModule ("CRDB_ADOPLUS.DLL")
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Metodo_Sviluppo
Groupie Joined: 02 September 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
|
If i use Excludemodule i have the same effect of using Removewindow (crash on developer machine too).
Anyway i've noticed that only some reports cause the application to crash, while other reports are correctly rendered and printed without any crash.
It seems that the crashes depends on the way the reports are created or the type of fields they contain. (of course without skinframework, all reports work and no crash occurs)
I'm investigating on the differences between a working report and a "faulty" one.
|
|
cybeh
Groupie Joined: 27 December 2005 Location: Malaysia Status: Offline Points: 76 |
Post Options
Thanks(0)
|
Actually the problem came from unloading the framework.
I was manage to escape from that error by installing .NET 2.0 framework. But, according to the codejock, it does crash their system even with .NET 2.0 framework installed. If you play around with the database (don't change the database connection in VB, just open the crystal report file), then, it won't reproduce the crash too. |
|
Metodo_Sviluppo
Groupie Joined: 02 September 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
|
My problem is different and isn't relative to .Net Framework (crdb_adoplus.dll isn't loaded at all during print preview). The crashes doesn't occur when i exit the application but occurs when i load and display the print preview form.
For some reports the preview displays correctly but with some other reports it crashes. (and the crashes occurs in both environments, Developer and End User machines)
|
|
Metodo_Sviluppo
Groupie Joined: 02 September 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
|
Finally Solved!!
To avoid the crash (in both developer and End-User machines) simply turn off the option "Perform Query Asynchronously" from the Crystal Reports designer-->File-->Report Options (or via code, setting to False the EnableAsyncQuery property of the crystal reports object).
Don't ask me why or how this option influences the skinframework, but this was the only difference from a working report and a crashing one
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Sounds like the queries are performed in a background thread, have you set SetAutoApplyNewThreads to false? |
|
Codejock support
|
|
Metodo_Sviluppo
Groupie Joined: 02 September 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
|
No, didn't notice that property.
So i leaved it with its default value...
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Did that solved your problems with the asynchronous queries?
|
|
Codejock support
|
|
Metodo_Sviluppo
Groupie Joined: 02 September 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
|
Yes, setting AutoApplyNewThreads to False seems to solve the problem without setting the EnableAsyncQuery in Crystal.
Thanks for the tip.
|
|
Hemesh
Senior Member Joined: 10 August 2010 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
Sorry to reactivate this thread, but I'm having a similar problem to this.
I've COM Interopped a Crystal v13 Control and on some machines (not mine!) it's causing a windows error in my VB6 application when showing reports with data on them. The error in the Event Viewer shows a fault in 'coe2b7~1.ocx' which is the Codejock OCX. After a bit of googling, it lead me to this thread. The problem is that setting AutoApplyNewThreads to False doesn't resolve the problem on mine, and I have to go into the report to disable the Async' query option for it to work. I'm a little unsure what else to try here! :|
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |