farshadmohajeri / extpascal

Automatically exported from code.google.com/p/extpascal
49 stars 28 forks source link

The newest version maybe have a bug. #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
- ExtPascal: rev.594
- ExtJS: v.3.0
- Compiler: Delphi 7
- OSes: WindowsXP sp2
- WebServer: Apache2
- Mode: FCGI

Today I update to 594,my old version is 586.
After update,my program have two errors.
1.I use 
DataStore : TExtDataJsonStore;
GridTableViewData: TExtGridEditorGridPanel;
to display the data from mysql-5

  DataStore := TFunctions.GetDataStore(MethodURI
(GridTableViewDataLoadData), 'Root', 'Total', sTableId, true, 
ViewDataFieldDefines);

on the procedure GridTableViewDataLoadData,
    Response := '{Total: ' + IntToStr(nDataCount) + ', Root:[' + Records 
+ ']}';

I check it, the Records have datas.
On version 594,the GridTableViewData did not display the record.was empty.

But if I restore to version 584,
my program is work ok.

my program reference ExtentDialer demo.

2.The next error is:
On the version 594, the unit ExtPascalUtils.pas
function BeautifyJS

          repeat
            i := i+1;
            // find multiple statement block end
            if (res[i] = '{') or (res[i] = '}') or (res[i] = ';') then 
backward := true;  //////Please note,this line raise exception
            if inNew and (res[i] = ']') then backward := true;
          until (res[i] = ',') or backward;

about line 541:

After DataStore.Reload(nil),maybe after 60-120 seconds,the program will 
raise exception at line 541.
the exception message is EAccessViolation

But on version 586,not raise exception.

I don't know this is a bug or not,please check.
If I have free time,I will compare the version 594 and 586.

Original issue reported on code.google.com by luoca...@gmail.com on 12 Jan 2010 at 5:25

GoogleCodeExporter commented 9 years ago
Today I delete the DebugJS define,my program run fine.
I think the BeautifyJS function maybe have a bug.I meet this bug on version 586 
and 
594.

Original comment by luoca...@gmail.com on 14 Jan 2010 at 5:03

GoogleCodeExporter commented 9 years ago
I just test version 599 on delphi7.the first bug maybe fixed.
now,I can display the query data.

Original comment by luoca...@gmail.com on 14 Jan 2010 at 5:13

GoogleCodeExporter commented 9 years ago
Possibly BeautifyJS function doesn't work with JSON/XML data transfers.

Original comment by wanderla...@gmail.com on 18 Jan 2010 at 7:54

GoogleCodeExporter commented 9 years ago

Original comment by wanderla...@gmail.com on 19 Jan 2010 at 1:27

GoogleCodeExporter commented 9 years ago
Fixed in SVN 605.

Hi Luo Canqi,

Test please.

Original comment by wanderla...@gmail.com on 19 Jan 2010 at 1:58

GoogleCodeExporter commented 9 years ago
Yes,I tested,use the DebugJS macro work ok.

Original comment by luoca...@gmail.com on 21 Jan 2010 at 7:46

GoogleCodeExporter commented 9 years ago

Original comment by wanderla...@gmail.com on 21 Jan 2010 at 11:22