Explorar o código

* write error in case of problem with initializing resources

git-svn-id: trunk@4457 -
florian %!s(int64=19) %!d(string=hai) anos
pai
achega
41e6b149f7
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      fv/app.pas

+ 5 - 1
fv/app.pas

@@ -974,7 +974,11 @@ CONSTRUCTOR TApplication.Init;
 
 BEGIN
 {   InitMemory;}                                              { Start memory up }
-   InitResource;
+   if not(InitResource) then
+     begin
+       writeln('Fatal: Can''t init resources');
+       halt(1);
+     end;
    initkeyboard;
    if not Drivers.InitVideo then                              { Start video up }
      begin