Fixing Cocos2D-x exe crash

During my cocos2D-x development with Visual Studio, I noticed that I can run my games pretty fine when I execute them via Visual Studio (F5 or Shift+F5,) but when I try to run the .exe file directly, it crashes.

After some trial and errors, I figured out that this crash is due to the .exe not being able to find game resources. To fix this crash just copy whatever’s inside your Resources folder to your Debug.win32 or Release.win32 folder and everything will run fine.

About these ads

Posted on September 6, 2013, in Blog, Game Development / Cocos2D-x and tagged . Bookmark the permalink. 6 Comments.

  1. Oh yes!! 3 days looking for how to fix this issue… you’re my hero!! :D

    thanks!!

  2. The app runs smoothly in my phone with 832mhz processor. But, in PC with Core2Duo 2.66Ghz processor it takes 50% of the processor resource. Is there any solution for that.

  3. My Graphics card is 9400GT and I have installed latest version of its driver. But, my phone don’t have a GPU and also it has only 832mhz processor and runs Cocos2d-x app smoothly.
    So, when phone runs without GPU why do running the same as win32 needs GPU.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 96 other followers

%d bloggers like this: