We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Syncfusion.XlsIO.IO.Stream.Win32.API.HeapFree cause IIS crash

Hi,

In our system. When I use XlsIO to generate xls report it cause our IIS crash. But that error is not happened every time to generate xls file.

In the Windows Event Viewer we caught this error when it happened.

Exception: System.AccessViolationException

Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

StackTrace: at Syncfusion.XlsIO.IO.Stream.Win32.API.HeapFree(IntPtr hHeap, Int32 dwFlags, IntPtr lpMem)
at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.OnDispose()
at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.Finalize()

So I hope someone has any idea for this error.

Thanks







5 Replies

YG Yavanaarasi G Syncfusion Team August 11, 2008 07:16 AM UTC

Hi Tommy,

Thank you for your interest in Syncfusion products.

Could you please send the excel file in which the issue caused so that we can reproduce the issue from our side and provide you a solution?

Also please provide the following details:

1.System configuration.
2.Office version
3.Essential studio version

Regards,
G.Yavana



IR Irin February 22, 2010 11:48 AM UTC

Hi All

This problem i am also getting. it is not with specific file. it is randomly getting generated when ever i generate file.

For Example,

If i tries to generate same report for 4 time 4th time i am getting error & my application is getting closed.


The Error i caught is given below.
------------------------------------------------------------

at Syncfusion.XlsIO.IO.Stream.Win32.API.HeapFree(IntPtr hHeap, Int32 dwFlags, IntPtr lpMem)
at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.OnDispose()
at Syncfusion.XlsIO.Parser.Biff_Records.DataProvider.Dispose()
at Syncfusion.XlsIO.Implementation.Collections.RowStorage.Dispose()
at Syncfusion.XlsIO.Implementation.Collections.RowStorage.Finalize()********************Inner Exception*************************************
************************ Message *********************************
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.************************ IsTerminating *********************************
True
************************ Exception Object *********************************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Syncfusion.XlsIO.IO.Stream.Win32.API.HeapFree(IntPtr hHeap, Int32 dwFlags, IntPtr lpMem)
at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.OnDispose()
at Syncfusion.XlsIO.Parser.Biff_Records.DataProvider.Dispose()
at Syncfusion.XlsIO.Implementation.Collections.RowStorage.Dispose()
at Syncfusion.XlsIO.Implementation.Collections.RowStorage.Finalize()





--------------------------------------
Please do the needful.


IR Irin February 22, 2010 11:50 AM UTC

For the same report now i am getting this


at Syncfusion.XlsIO.IO.Stream.Win32.API.HeapFree(IntPtr hHeap, Int32 dwFlags, IntPtr lpMem)
at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.OnDispose()
at Syncfusion.XlsIO.Parser.Biff_Records.DataProvider.Dispose()
at Syncfusion.XlsIO.Parser.Biff_Records.DataProvider.Finalize()
at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.Finalize()********************Inner Exception*************************************
************************ Message *********************************
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.************************ IsTerminating *********************************
True
************************ Exception Object *********************************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Syncfusion.XlsIO.IO.Stream.Win32.API.HeapFree(IntPtr hHeap, Int32 dwFlags, IntPtr lpMem)
at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.OnDispose()
at Syncfusion.XlsIO.Parser.Biff_Records.DataProvider.Dispose()
at Syncfusion.XlsIO.Parser.Biff_Records.DataProvider.Finalize()
at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.Finalize()


AV Avin September 10, 2012 06:57 AM UTC

Hi,

I am also getting the same issue, Do we have any update from Syncfusion on this??

Thanks

Avin

 



ZF Zachary French October 4, 2013 10:22 PM UTC

Similar issue except we're trying to open a file

here's the error

Application: w3wp.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.AccessViolationException

Stack:

   at Syncfusion.XlsIO.Implementation.Heap.HeapFree(IntPtr, Int32, IntPtr)

   at Syncfusion.XlsIO.Implementation.Heap.HeapFree(IntPtr, Int32, IntPtr)

   at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.OnDispose()

   at Syncfusion.XlsIO.Parser.Biff_Records.IntPtrDataProvider.Finalize()

We're using: v (11.104.0.21)
Syncfusion.Compression.Base 
Syncfusion.Core 
Syncfusion.XlsIO.Base

Any help on this would be extremely helpful, since it brings down all of our clients on that box


Loader.
Live Chat Icon For mobile
Up arrow icon