PDA

View Full Version : ایجاد مشکل در حین اجرای سرویس؟



yaas135
چهارشنبه 30 آذر 1384, 10:03 صبح
سلام من یه سرویس نوشتم با این دستور:



fileType: TextFile;
Path: string;
begin
AssignFile(fileType, 'C:\path.txt');
Reset(fileType);
ReadLn(fileType, Path);
fileGen.Open;
while Not filegen.Eof do
begin
ForceDirectories(Path+fileGenAddress.AsString);
fileGenContext.SaveToFile(Path+fileGenAddress.AsSt ring+fileGenFileName.AsString);
fileGen.Next;
end;
CloseFile(fileType);
fileGen.close;
end;

سه چهار بار اول کار رو درست انجام میده، اما بعدش با هر بار اجرا این لاگ توی سیستم ثبت می شه: این طوری ارور می ده:


The description for Event ID ( 0 ) in Source ( FileGen.exe ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

چرا؟

nasr
دوشنبه 27 دی 1389, 10:09 صبح
من هم همین مشکل را دارم

آیا از دوستان کسی می دونه علتش چیه؟