[英]Debugger error 193 lazarus
I can't debug one of my programs for a year now. 我现在无法调试我的一个程序。 When I press the green Run button, the following error message appears:
当我按下绿色运行按钮时,会出现以下错误消息:
The full text is: 全文是:
The GDB command:
"-exec-run"
returned the error:
",msg="Error creating process C:/Users/leven/OneDrive/J\341t\351kpogramok/People/people.exe, (error 193).""
I've read many forums about this error, but my case looks a bit different... 我已经阅读了很多有关此错误的论坛,但我的情况看起来有点不同......
Thanks in advance for your help! 在此先感谢您的帮助!
UPDATE: 更新:
I've found, that the line 我发现,那条线
p[x,y,2,1]:=r;
cannot be debugged by the compiler. 无法由编译器调试。 Description:
描述:
p: array [1..15000, 1..10000, 1..7, 1..4] of integer;
p[] is a game field. p []是一个游戏领域。 The first two parameters are coordinates, the third and the fourth are not important.
前两个参数是坐标,第三个和第四个参数并不重要。
x, y and r are integers. x,y和r是整数。
So, the command seen above writes a number into the game field (p[]) array using the x, y coordinates. 因此,上面看到的命令使用x,y坐标将数字写入游戏区域(p [])数组。
I think we established through a series of queries in comments that the necessary and sufficient condition to provoke the debugger problem you've been getting is to include in your app the declaration of the array p
that you've added to your q, that is: 我认为我们通过评论中的一系列查询确定了引发调试器问题的必要和充分条件是在您的应用程序中包含您已添加到q的数组
p
的声明,即:
var
p: array [1..15000, 1..10000, 1..7, 1..4] of integer;
For you, it seems that just including this declaration in your code is sufficient to make the debugger throw the error you quote. 对于您来说,似乎只需在代码中包含此声明即可使调试器抛出您引用的错误。
For me the debugger starts fine but I get a SIGSEGV error on the assignment to p[]
in the following code: 对我来说,调试器启动正常,但我在以下代码中对
p[]
的赋值出现了SIGSEGV错误:
var
p: array [1..15000, 1..10000, 1..7, 1..4] of integer;
x,
y,
r : integer;
begin
x := 100;
y := 100;
r := 666;
p[x, y, 1, 1] := r;
writeln('Press any key ...');
readln;
end.
So, I would try smaller values for the first two bounds of the p
array. 所以,我会尝试
p
数组前两个边界的较小值。 If that works and you still need the original bounds, I would suggest looking for an FPC library which implements "sparse arrays" and declare p
as one of those. 如果这样做仍然需要原始边界,我建议寻找一个实现“稀疏数组”的FPC库,并将
p
声明为其中之一。
Good luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.