Kodi Community Forum
VC++ Runtime Errors After Error-free Build - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: VC++ Runtime Errors After Error-free Build (/showthread.php?tid=48113)



VC++ Runtime Errors After Error-free Build - mmckenna - 2009-04-02

Hello,

I've successfully compiled XBMC in VC++ 2008 Express in both the Release and Debug configuration. I am also able to run XBMC from the debugger within VC++.

My problem is that if I try to run XBMC.exe from Windows explorer, I get the following error:
---------
Microsoft Visual C++ Runtime Library
Program: C:\xbmc\project\VS2008Express\XBMC\Release (SDL)\XBMC.exe

This application has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more information.
---------

I've searched the forums here, but I was unable to find a solution. Any thoughts?


Thank you!

Matt


- WiSo - 2009-04-02

XBMC can't find it's xml's and other data or did you copy the whole XBMC installation directory into the Release directory?
it runs from the debugger because you set the XBMC_HOME variable.
Better is to copy the exe to a real installation directory.


- mmckenna - 2009-04-03

Thank you for the response.

In that case, are there any best practices out there for compiling and then deploying custom versions of XBMC?


Thanks!

Matt


- jmarshall - 2009-04-03

Use the build scripts in the projects/ folder.


- mmckenna - 2009-04-03

Thank you. Working on it.