project reality header
Go Back   Project Reality Forums > Project Reality Support > PR:BF2 Support
12 Sep 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
PR:BF2 Support Help and support regarding PR:BF2 installation and in-game issues

Reply
 
Thread Tools Display Modes
Old 2014-06-30, 12:11   #1
waseemrkab
Default Critical Error: An unhandled exception has occured. Details are as follows

Hello I've downloaded project reality BF2 everytime I try to launch the game it gives me this message please I need help I don't know how to fix it

here's the message it says:


Code:
Project Reality Log File
PRLauncher.exe started at: 2014-06-30T15:12:01

Critical Error: An unhandled exception has occured. Details are as follows:

Object reference not set to an instance of an object.

Further details can be found in the following file:

D:\GAMES\Battlefield 2\mods\pr\bin\PRLauncher.log

Please report this error to the Project Reality Team, and include the log file in your report.

Visit Support Forum

 > System.NullReferenceException: Object reference not set to an instance of an object.
   ב-   . .()
   ב-  Reality.BF2.Settings.Video.(String )
   ב-  System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   ב-  System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   ב-  Reality.BF2.Settings.Video.GetDefaultResolution()
   ב-  Reality.BF2.Settings.Video.CreateDefault(UInt16 profile)
   ב-  PRLauncher.App.()
   ב-  PRLauncher.App.OnStartup(StartupEventArgs )
   ב-  System.Windows.Application.<.ctor>b__1(Object unused)
   ב-  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   ב-  MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
waseemrkab is offline Reply With Quote
Old 2014-06-30, 14:21   #2
waseemrkab
Default Re: Critical Error: An unhandled exception has occured. Details are as follows

Any one please?? I need help
waseemrkab is offline Reply With Quote
Old 2014-06-30, 14:24   #3
Psyrus
Retired PR Developer
Default Re: Critical Error: An unhandled exception has occured. Details are as follows

Does BF2 launch properly?

It looks like a profiles problem, check your My Documents\Project Reality\Profiles\ folder
Psyrus is offline Reply With Quote
Old 2014-06-30, 14:58   #4
waseemrkab
Default Re: Critical Error: An unhandled exception has occured. Details are as follows

Yes now its working I've copied the profile folder from battlefield 2 in project reality folder now it works thanks
waseemrkab is offline Reply With Quote
Old 2014-06-30, 15:44   #5
Psyrus
Retired PR Developer
Default Re: Critical Error: An unhandled exception has occured. Details are as follows

A pleasure, hope to see you on the battlefield
Psyrus is offline Reply With Quote
Old 2014-07-13, 10:21   #6
[R-DEV]​Arab
PR:BF2 Developer
Supporting Member

Arab's Avatar
Default Re: Critical Error: An unhandled exception has occured. Details are as follows

I got this error.

How did it happened:
1. Go to Settings. The setting box is blank
2. Go to Profile box, select profile.
3. Try clicking on every tab quickly

How I make it not happen:
1. Go to Profile Box, select profile
2. Wait for it to load settings

But sometimes it displays this error:

Code:
Project Reality Log File
PRLauncher.exe started at: 2014-07-13T20:21:33

Critical Error: An unhandled exception has occured. Details are as follows:

The calling thread cannot access this object because a different thread owns it.

Further details can be found in the following file:

C:\Program Files (x86)\Origin Games\...PRLauncher.log

Please report this error to the Project Reality Team, and include the log file in your report.

Visit Support Forum

 > System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
   at System.Windows.DependencyObject.GetValue(DependencyProperty dp)
   at Reality.Utils.WPF.Service.DialogService..(FrameworkElement )
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Reality.Utils.WPF.Service.DialogService.(Object )
   at PRLauncher.WPF.ViewModel.OptionsWindowViewModel.set_SelectedProfile(KeyValuePair`2 value)
   at PRLauncher.WPF.ViewModel.OptionsWindowViewModel..()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Code:
System Information
------------------
  Operating System: Microsoft Windows 8.1 Pro (6.3.9600)
      Architecture: 64-bit
   Current Culture: English (Australia)
       Motherboard: Apple Inc. Mac-F2238AC8
         Processor: Intel(R) Core(TM) i5 CPU         680  @ 3.60GHz (Physical: 2, Logical: 4)
            Memory: 4.00 GB
      DIMM Modules: DIMM1: 2.00 GB @ 1333 MHz
                    DIMM1: 2.00 GB @ 1333 MHz
         Page File: 4.00 GB
    .NET Framework: 4.5.1, Runtime: 4.0.30319.34014

Display Information
-------------------
 Display Device(s): Generic PnP Monitor on ATI Radeon HD 5670
   Display Mode(s): 1920 x 1080 (32 bit) @ 60 Hz
    Driver Version: 8.812.0.0
    Display Memory: 512.00 MB
     Multisampling: 2, 4, 8
               DPI: 96 (100%)

Audio Information
-----------------
  Primary Playback: Speakers (Cirrus Logic CS4206A 
 Primary Recording: Microphone (Cirrus Logic CS4206
  Open AL Renderer: Software
               EAX: True
           EAX 1.0: False
           EAX 2.0: True
           EAX 3.0: False
           EAX 4.0: False
           EAX 5.0: False
             X-RAM: False

Disk Information
----------------
      Install Path: C:\Program Files (x86)\Origin Games\Battlefield 2 Complete Collection
                    Free: 12.17 GB, Total: 138.77 GB, FS: NTFS, SSD: False
          Mod Path: C:\Program Files (x86)\Origin Games\Battlefield 2 Complete Collection\mods\pr
                    Free: 12.17 GB, Total: 138.77 GB, FS: NTFS, SSD: False
     Profiles Path: C:\Users\Downstairs\Documents\ProjectReality\Profiles
                    Free: 12.17 GB, Total: 138.77 GB, FS: NTFS, SSD: False
    Update DL Path: C:\Users\Downstairs\AppData\Local\Project Reality\Project Reality BF2\Downloads
                    Free: 12.17 GB, Total: 138.77 GB, FS: NTFS, SSD: False
   Update Log Path: C:\Users\Downstairs\AppData\Local\Project Reality\Project Reality BF2\UpdateLogs
                    Free: 12.17 GB, Total: 138.77 GB, FS: NTFS, SSD: False

Game Information
----------------
    Installed Mods: bf2, pr, Project Reality Modifications, prtest, pr_edit, pr_fpstest4, xpack
       Current Mod: pr
       BF2 Version: BF2 1.5
        PR Version: 1.2.0.0
          Language: english
   Debug Available: False
     Large Address: True
Supported Hardware: None

Profile Information
-------------------
      Profile 0001: ruffler
              Type: Online
        View Intro: True
        Fullscreen: True
      Display Mode: 1920x1080@60Hz
Display Mode Valid: True
   Graphics Scheme: Medium
     Multisampling: Off
             VSync: False
   Terrain Quality: Low
   Effects Quality: Medium
  Geometry Quality: Low
   Texture Quality: Medium
  Lighting Quality: Low
   Dynamic Shadows: Medium
    Dynamic Lights: Medium
 Texture Filtering: Medium
    Audio Provider: Software
    Provider Valid: True
     Audio Quality: Medium
               EAX: True
Arab is offline
Last edited by [R-DEV]Arab; 2014-07-13 at 10:28..
Reply With Quote
Old 2016-12-19, 06:42   #7
walshmagger
Default Re: Critical Error: An unhandled exception has occured. Details are as follows

The message "Object not set to instance of Object" means that you are trying to use an object which has not been initialized. That is, you either set it to null, or you never set it to anything at all. The runtime throwing a NullReferenceException always means the same thing: you are trying to use a reference. The reference is not initialized (or it was initialized, but is no longer initialized). This points to one of the following:

Your code declared an object variable, but it did not initialize it (create an instance or 'instantiate' it)

Something which your code assumed would initialize an object, did not

Possibly, other code prematurely invalidated an object still in use.

More about...NullReferenceException

Walsh
walshmagger is offline Reply With Quote
Reply


Tags
critical, details, error, exception, occured, unhandled

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 18:22.