Invalid pointer operation

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
alexpirate
Posts: 13
Joined: Sat Aug 20, 2011 9:46 am

Invalid pointer operation

Post by alexpirate »

Hi,

now i'm testing this component for Delphi xe4.

i'm receiving this error in two cases.

doping the component on the form. changing the name to XLS.

XLS.clear;
XLS[0].Name := 'Sheet1';
XLS.FileName := SaveDialog1.FileName;
XLS.Write;

and if I execute second time XLS.clear; or try to close the form, the result is "Invalid pointer operation".
this leads to other problem like can't exit the application and other problems if using modal forms.
alexpirate
Posts: 13
Joined: Sat Aug 20, 2011 9:46 am

Re: Invalid pointer operation

Post by alexpirate »

shayanjameel08 wrote:You should check for

if FileExists(OpenDialog1.Files) then begin

instead of

if FileExists(OpenDialog1.FileName) then begin

Better invest in a local variable holding that value.



I don't understand you. what's the point with the savedialog or opendialog when XLSReadWriteII crashes when you write the file and try some other manipulations. you can't close the form (action := caFree;). you can't execute XLS.clear; or other commands.

please, read before post somethink.
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Invalid pointer operation

Post by larsa »

Hello

I can't reproduce this. Please try the latest update of the componet.

shayanjameel08 is a moron that is kicked out now. Sorry for any inconvenience he caused.
Lars Arvidsson, Axolot Data
Post Reply