Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Heap Corruption
Message
 
À
06/12/2007 10:48:55
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01273618
Message ID:
01273624
Vues:
12
Yes...

Just to be on the safe side (In case, I forgot/missed something), here's the code that creates the report and prints/previews it:

MatchingWorksheet is a CrystalReport.
            MatchingWorksheet report = new MatchingWorksheet();
            report.SetDataSource(this.Data);

            if(isPreview)
            {
                reportForm.Hide();
                
                FormPrintPreview fpp = new FormPrintPreview(report);

                fpp.ShowDialog(reportForm.Owner);

                reportForm.Visible = true;

            }
            else
            {
                report.PrintOptions.PrinterName = reportForm.PrinterName;
                report.PrintToPrinter(reportForm.Copies,
                                        true,
                                        reportForm.PrintRange.FromPage,
                                        reportForm.PrintRange.ToPage);
            }
>I'm wondering why CRPE32 is loaded. It is a COM-based ActiveX control. Are you using the .Net Crystal Report libraries?
>
>
>>I have a WinForm based app that works and exits without any problems as long as a Crystal Report is not previewed. However, when a report is previewed I get the following (From output window):
>>
>>
>>'DCF.ReconSys.exe': Loaded 'C:\WINDOWS\SYSTEM32\nvwimg.dll', Binary was not built with debug information.
>>'DCF.ReconSys.exe': Unloaded 'C:\WINDOWS\SYSTEM32\nvwimg.dll'
>>'DCF.ReconSys.exe': Loaded 'C:\WINDOWS\SYSTEM32\nvwimg.dll', Binary was not built with debug information.
>>'DCF.ReconSys.exe': Loaded 'C:\WINDOWS\SYSTEM32\MSIMG32.DLL', No symbols loaded.
>>First-chance exception at 0x7c812a5b in DCF.ReconSys.exe: 0xC0020001: The string binding is invalid.
>>First-chance exception at 0x3aa18217 in DCF.ReconSys.exe: 0xC0000005: Access violation writing location 0x05663000.
>>HEAP[DCF.ReconSys.exe]: Heap block at 05662F78 modified at 05662F92 past requested size of 12
>>Windows has triggered a breakpoint in DCF.ReconSys.exe.
>>
>>This may be due to a corruption of the heap, and indicates a bug in DCF.ReconSys.exe or any of the DLLs it has loaded.
>>
>>The output window may have more diagnostic information
>>
>>
>>My own code runs through without problems (using breakpoints at all exiting code). The call stack only shows NTDLL.DLL and crpe32.dll.
>>
>>Any ideas of where to even start? Or how do I unload Crystal Reports when the Reporting features are exited by the user before they exit the application?
>>
>>TIA,
>>Richard
State of Florida, DCF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform