Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion Failure Pin
bhanu_850918-Sep-08 22:03
bhanu_850918-Sep-08 22:03 
GeneralRe: Debug Assertion Failure Pin
Cedric Moonen18-Sep-08 22:13
Cedric Moonen18-Sep-08 22:13 
QuestionRe: Debug Assertion Failure Pin
Rajesh R Subramanian18-Sep-08 22:01
professionalRajesh R Subramanian18-Sep-08 22:01 
AnswerRe: Debug Assertion Failure Pin
bhanu_850918-Sep-08 22:10
bhanu_850918-Sep-08 22:10 
QuestionRe: Debug Assertion Failure Pin
Rajesh R Subramanian18-Sep-08 22:14
professionalRajesh R Subramanian18-Sep-08 22:14 
QuestionRe: Debug Assertion Failure Pin
David Crow19-Sep-08 3:23
David Crow19-Sep-08 3:23 
QuestionRe: Debug Assertion Failure Pin
Rajesh R Subramanian18-Sep-08 20:49
professionalRajesh R Subramanian18-Sep-08 20:49 
QuestionAccess Violation Reading location Pin
T.RATHA KRISHNAN18-Sep-08 20:30
T.RATHA KRISHNAN18-Sep-08 20:30 
When I run a project, it shows exception. If I debug using F11 or F10, I can't go beyond that line where it shows exception. I can't see Disassembly also. What to do? Here is the code:

void TestAI::EnableShaders()
{
  dtCore::ShaderManager& sm = dtCore::ShaderManager::GetInstance();
  dtCore::ShaderProgram* sp = sm.FindShaderPrototype("TestShader", "TestShader");
  if(sp != NULL)
  {
   sm.AssignShaderFromPrototype(*sp, *m_Obj->GetOSGNode());
   mEnabled = true;
  }
 }



Exception occurs at the following line:
sm.AssignShaderFromPrototype(*sp, *m_Obj->GetOSGNode());

Here is the contents of Output Window.

First-chance exception at 0x00407336 in GUI.exe: 0xC0000005: Access violation reading location 0x00000020.

Unhandled exception at 0x00407336 in GUI.exe: 0xC0000005: Access violation reading location 0x00000020.

How to resolve these exception?
AnswerRe: Access Violation Reading location Pin
_AnsHUMAN_ 18-Sep-08 20:38
_AnsHUMAN_ 18-Sep-08 20:38 
GeneralRe: Access Violation Reading location Pin
T.RATHA KRISHNAN18-Sep-08 20:43
T.RATHA KRISHNAN18-Sep-08 20:43 
AnswerRe: Access Violation Reading location Pin
Cedric Moonen18-Sep-08 20:43
Cedric Moonen18-Sep-08 20:43 
GeneralRe: Access Violation Reading location Pin
T.RATHA KRISHNAN18-Sep-08 21:02
T.RATHA KRISHNAN18-Sep-08 21:02 
AnswerRe: Access Violation Reading location Pin
Rane19-Sep-08 1:14
Rane19-Sep-08 1:14 
AnswerRe: Access Violation Reading location Pin
David Crow19-Sep-08 3:24
David Crow19-Sep-08 3:24 
QuestionSetup package Pin
AnithaSubramani18-Sep-08 19:54
AnithaSubramani18-Sep-08 19:54 
AnswerRe: Setup package Pin
Rane19-Sep-08 1:19
Rane19-Sep-08 1:19 
QuestionRounding float values Pin
KASR118-Sep-08 19:03
KASR118-Sep-08 19:03 
AnswerRe: Rounding float values Pin
Naveen18-Sep-08 19:13
Naveen18-Sep-08 19:13 
GeneralRe: Rounding float values Pin
KASR118-Sep-08 19:36
KASR118-Sep-08 19:36 
GeneralRe: Rounding float values Pin
Malli_S18-Sep-08 19:59
Malli_S18-Sep-08 19:59 
GeneralRe: Rounding float values Pin
Naveen18-Sep-08 20:00
Naveen18-Sep-08 20:00 
GeneralRe: Rounding float values Pin
KASR118-Sep-08 20:02
KASR118-Sep-08 20:02 
GeneralRe: Rounding float values Pin
Cedric Moonen18-Sep-08 20:00
Cedric Moonen18-Sep-08 20:00 
GeneralRe: Rounding float values Pin
KASR118-Sep-08 20:02
KASR118-Sep-08 20:02 
AnswerRe: Rounding float values Pin
Steve Echols18-Sep-08 19:59
Steve Echols18-Sep-08 19:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.