#1 Yesterday 06:44:00

slan2026
Member
Registered: Yesterday
Posts: 2

TRestHttpServer mormot.core.text.pas IsInvalidHttpHeader

When I run the code in mormot2\ex\mvc-blog on my computer, an error occurs: 00000000156a25fa  # EXCOS EAccessViolation (c0000005 EXCEPTION_ACCESS_VIOLATION) [blog 2] at 5abb8e mormot.core.text.pas IsInvalidHttpHeader (10879)   {16 0.89 0.57 10GB/31.8GB 4a651701}. However, it runs normally on another computer. How can I resolve this error on my computer, or is there a part of my computer that might be malfunctioning?

Offline

#2 Yesterday 17:55:31

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,400
Website

Re: TRestHttpServer mormot.core.text.pas IsInvalidHttpHeader

Which compiler?
Which Operating System?

Can you give more context?

Offline

#3 Yesterday 23:45:04

slan2026
Member
Registered: Yesterday
Posts: 2

Re: TRestHttpServer mormot.core.text.pas IsInvalidHttpHeader

ab wrote:

Which compiler?
Which Operating System?

Can you give more context?

Delphi12.1
win10。
Additionally, I compiled it once using Lazarus, and everything went smoothly.

When I debug, the returned value is on line 8016 of the  mormot.rest.server.pas unit
//  lazarus: Call.OutHead = 'Content-Type: text/html;charset=utf-8' 
//delphi12.1:OutHead 'Content-Type: text/html;charset=utf-8'#$D#$A'ETag: "E039C149"'

Last edited by slan2026 (Today 00:38:43)

Offline

Board footer

Powered by FluxBB