Worksheet.AutofitColumn cause memory corruption

I am using Xlsio on a web server. I was having some weird access voiltaion errors on some other parts of the system after exporting data to excel. The access violation occured only when I exported to excel otherwise the system worked perfectly.

I traced it back to IWorksheet.AutofitColumn method. The moment I comment calls to AutofitColumn there are no access violations.

So it seems that IWorksheet.AutofitColumn is calling some unmanaged API and is causing some memory corruption.

I can replicate the problem everytime on one machine.

Any ideas?



1 Reply

MW Melba Winshia Syncfusion Team January 10, 2008 01:35 PM UTC

Hi Rama,

Thank you for your interest in Syncfusion products.

Worksheet.AutofitColumn causes memory corruption

I am afraid that I was not able to reproduce the issue. Also I have created a simple sample to test this issue and it is available in the following link:

http://websamples.syncfusion.com/samples/XlsIO.Web/6.1.0.34/I40369/main.htm

Please have a look at the aboave sample and video clip and if still the issue exists, could you please try reproducing it in the above sample and send us the modified sample so that we could sort out the cause of the issue and provide you a solution?

Thanks,
Melba


Loader.
Up arrow icon