The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
[SDL 2.0.4] Failed loading shcore.dll
Faluk


Joined: 16 Apr 2015
Posts: 17
Hi,


I just moved to the stable version SDL 2.0.4 and I currently have a non blocking problem.


After using
Quote:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
and checkig
Quote:
SDL_GetError
I get the "Failed loading shcore.dll" message.


I don't know if this affects to mi engine in some imprevisible way, but at the moment it's working.


Here is the code source to create the window:

Quote:
bool WindowSystem::Initialize(const std::string& sTitle, unsigned uWidth, unsigned uHeight)
{
TraceInformation("Inicializando WindowSystem");


//SDL_Init(SDL_INIT_VIDEO);
SDL_ClearError();
int iNumOfDriversAvaliable=SDL_GetNumVideoDrivers();
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, "Number of drivers availables: %d", iNumOfDriversAvaliable);
for(int i=0; i<iNumOfDriversAvaliable; ++i){
SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, "#%d: [%s]", i, SDL_GetVideoDriver(i));
}
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
/* Request opengl 3.1 context.
* SDL doesn't have the ability to choose which profile at this time of writing,
* but it should default to the core profile */
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
/* Turn on double buffering with a 32bit Z buffer.
* You may need to change this to 16 or 24 for your system */
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 32);
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
SDL_Init(SDL_INIT_VIDEO);
CheckSDLError(__FILE__, __LINE__);

/* Create our window centered resolution */
m_uHeigh=uHeight;
m_uWidth=uWidth;
myWindow_=SDL_CreateWindow(sTitle.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
   m_uWidth, m_uHeigh, SDL_WINDOW_OPENGL);
CheckSDLError(__FILE__, __LINE__);
/* Die if creation failed */
if (!myWindow_)
{
return false;
}

TraceInformation("WindowSystem initialization finished");
return true;
}
Thank you for your time.


~Ismael S. [Faluk]
[SDL 2.0.4] Failed loading shcore.dll
Jonny D


Joined: 12 Sep 2009
Posts: 932
I don't think this affects your issue, but SDL does have the ability to specify compatibility vs core profile:https://wiki.libsdl.org/SDL_GLprofile



Jonny D






On Mon, Jan 4, 2016 at 8:18 AM, Ismael Serrano wrote:
Quote:
Hi,


I just moved to the stable version SDL 2.0.4 and I currently have a non blocking problem.


After using
Quote:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
and checkig
Quote:
SDL_GetError
I get the "Failed loading shcore.dll" message.


I don't know if this affects to mi engine in some imprevisible way, but at the moment it's working.


Here is the code source to create the window:

Quote:
bool WindowSystem::Initialize(const std::string& sTitle, unsigned uWidth, unsigned uHeight)
{
TraceInformation("Inicializando WindowSystem");


//SDL_Init(SDL_INIT_VIDEO);
SDL_ClearError();
int iNumOfDriversAvaliable=SDL_GetNumVideoDrivers();
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, "Number of drivers availables: %d", iNumOfDriversAvaliable);
for(int i=0; i<iNumOfDriversAvaliable; ++i){
SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, "#%d: [%s]", i, SDL_GetVideoDriver(i));
}
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
/* Request opengl 3.1 context.
* SDL doesn't have the ability to choose which profile at this time of writing,
* but it should default to the core profile */
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
/* Turn on double buffering with a 32bit Z buffer.
* You may need to change this to 16 or 24 for your system */
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 32);
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
SDL_Init(SDL_INIT_VIDEO);
CheckSDLError(__FILE__, __LINE__);

/* Create our window centered resolution */
m_uHeigh=uHeight;
m_uWidth=uWidth;
myWindow_=SDL_CreateWindow(sTitle.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
   m_uWidth, m_uHeigh, SDL_WINDOW_OPENGL);
CheckSDLError(__FILE__, __LINE__);
/* Die if creation failed */
if (!myWindow_)
{
return false;
}

TraceInformation("WindowSystem initialization finished");
return true;
}
Thank you for your time.


~Ismael S. [Faluk]

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

[SDL 2.0.4] Failed loading shcore.dll
anime xvid
Guest

Do not accept this. Wrong e-mail. Sorry.


2016-01-04 14:12 GMT+01:00 anime xvid:
Quote:
Hi,


I just moved to the stable version SDL 2.0.4 and I currently have a non blocking problem.


After using
Quote:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
and checkig
Quote:
SDL_GetError
I get the "Failed loading shcore.dll" message.


I don't know if this affects to mi engine in some imprevisible way, but at the moment it's working.


Here is the code source to create the window:

Quote:
bool WindowSystem::Initialize(const std::string& sTitle, unsigned uWidth, unsigned uHeight)
{
TraceInformation("Inicializando WindowSystem");


//SDL_Init(SDL_INIT_VIDEO);
SDL_ClearError();
int iNumOfDriversAvaliable=SDL_GetNumVideoDrivers();
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, "Number of drivers availables: %d", iNumOfDriversAvaliable);
for(int i=0; i<iNumOfDriversAvaliable; ++i){
SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, "#%d: [%s]", i, SDL_GetVideoDriver(i));
}
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
/* Request opengl 3.1 context.
* SDL doesn't have the ability to choose which profile at this time of writing,
* but it should default to the core profile */
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
/* Turn on double buffering with a 32bit Z buffer.
* You may need to change this to 16 or 24 for your system */
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 32);
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
SDL_Init(SDL_INIT_VIDEO);
CheckSDLError(__FILE__, __LINE__);

/* Create our window centered resolution */
m_uHeigh=uHeight;
m_uWidth=uWidth;
myWindow_=SDL_CreateWindow(sTitle.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
   m_uWidth, m_uHeigh, SDL_WINDOW_OPENGL);
CheckSDLError(__FILE__, __LINE__);
/* Die if creation failed */
if (!myWindow_)
{
return false;
}

TraceInformation("WindowSystem initialization finished");
return true;
}
Thank you for your time.


~Ismael S. [Faluk]

[SDL 2.0.4] Failed loading shcore.dll
anime xvid
Guest

Hi,


I just moved to the stable version SDL 2.0.4 and I currently have a non blocking problem.


After using
Quote:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
and checkig
Quote:
SDL_GetError
I get the "Failed loading shcore.dll" message.


I don't know if this affects to mi engine in some imprevisible way, but at the moment it's working.


Here is the code source to create the window:

Quote:
bool WindowSystem::Initialize(const std::string& sTitle, unsigned uWidth, unsigned uHeight)
{
TraceInformation("Inicializando WindowSystem");


//SDL_Init(SDL_INIT_VIDEO);
SDL_ClearError();
int iNumOfDriversAvaliable=SDL_GetNumVideoDrivers();
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, "Number of drivers availables: %d", iNumOfDriversAvaliable);
for(int i=0; i<iNumOfDriversAvaliable; ++i){
SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, "#%d: [%s]", i, SDL_GetVideoDriver(i));
}
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
/* Request opengl 3.1 context.
* SDL doesn't have the ability to choose which profile at this time of writing,
* but it should default to the core profile */
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
/* Turn on double buffering with a 32bit Z buffer.
* You may need to change this to 16 or 24 for your system */
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 32);
CheckSDLError(__FILE__, __LINE__);
SDL_ClearError();
SDL_Init(SDL_INIT_VIDEO);
CheckSDLError(__FILE__, __LINE__);

/* Create our window centered resolution */
m_uHeigh=uHeight;
m_uWidth=uWidth;
myWindow_=SDL_CreateWindow(sTitle.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
   m_uWidth, m_uHeigh, SDL_WINDOW_OPENGL);
CheckSDLError(__FILE__, __LINE__);
/* Die if creation failed */
if (!myWindow_)
{
return false;
}

TraceInformation("WindowSystem initialization finished");
return true;
}
Thank you for your time.


~Ismael S. [Faluk]