Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

AV Error on parsing #4

Open
ange007 opened this issue Nov 25, 2018 · 5 comments
Open

AV Error on parsing #4

ange007 opened this issue Nov 25, 2018 · 5 comments

Comments

@ange007
Copy link

ange007 commented Nov 25, 2018

Hello.

bds_2018-11-25_19-40-39
bds_2018-11-25_19-42-34

Uses:

  function getOtherData(const resultPage: string): string;
  var
    elements: IHtmlElementList;
  begin
    try elements := ParserHTML(resultPage).Find('#page_info_wrap .page_name'); except end;
    try if (Assigned(elements)) and (elements.Count > 0) then SetJSONValue(Result, 'fio', elements.Items[0].Text); except end;

    try elements := ParserHTML(resultPage).Find('#page_avatar .page_avatar_img'); except end;
    try if (Assigned(elements)) and (elements.Count > 0) then SetJSONValue(Result, 'avatar', elements.Items[0].Attributes['src']); except end;
  end;

bds_2018-11-25_19-41-37

Climbs an exception. What could be wrong?

@ange007
Copy link
Author

ange007 commented Dec 9, 2018

Can't help? This is a very sad error.

@ying32
Copy link
Owner

ying32 commented Dec 14, 2018

Sorry, github has not prompted me to have this issue. I can't analyze the reason for this problem from the pictures you provided. If you can, provide the original URL for my test and try to analyze this error. Or consult the original author 武稀松(wr960204). I am not the original author of the HTMLParser library, just added the ability to "modify" and "delete" HTML tags.

@ange007
Copy link
Author

ange007 commented Dec 16, 2018

The error appears incomprehensible how. When working out of a TThread, the error appears very rarely on the same page (when loading from the TFileStream). But in the TThread - almost always.

@ying32
Copy link
Owner

ying32 commented Dec 20, 2018

I tried to restore some code to fix this error. Or you can use the original author's code http://www.raysoftware.cn/?p=443

@ange007 ange007 mentioned this issue Jan 2, 2019
@ange007
Copy link
Author

ange007 commented Jan 4, 2019

Actually the error did not disappear:
image

Apparently bad calculation of characters.

Or you can use the original author's code http://www.raysoftware.cn/?p=443

Unfortunately, I do not even know how to write there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants