使用传统ASP如何从查询中返回图像.
我想在网页上使用图像进行跟踪,例如我可能有一个页面包含:
<img src="../cgi-bin/getimage.asp?user1234&page=1232" WIDTH="1" HEIGHT="1">
Run Code Online (Sandbox Code Playgroud)
GetImage.ASP将记录传递的详细信息并返回透明GIF.
我似乎已经创建了破坏内存的代码.
从来没有遇到过这样的问题,我现在设置了一个无效的指针操作.
在下面,我调用PromptForXYZPropertiesSettings后,const字符串sFilename的值被删除.
// Allow the user to quickly display the properties of XYZ without needing to display the full Editor
function PromptForXYZProperties(const sFilename:string; var AXYZProperties: TXYZProperties): boolean;
var
PropEditor: TdlgEditor;
begin
PropEditor:= TdlgEditor.create(nil);
try
PropEditor.LoadFromFile(sFilename); <-- sFilename = 'C:\My Folder\Some Folder.txt'
PropEditor.SelectedXYZProperties := AXYZProperties;
// Bypass PropEditor to show form owned by it
Result := PropEditor.PromptForXYZPropertiesSettings;
if Result then
begin
PropEditor.SaveToFile(sFilename); <-- sFilename now somethign like 'B'#1#0#0'ë' or value of a different var
end;
finally
PropEditor.free;
end;
end;
Run Code Online (Sandbox Code Playgroud)
其他详情: …