Yes i know, but always VS points me, where or which was not allocated
variable, this time it points me no where. When i disassembly it i get only
blank code in this location.

2010/2/25 J.P. Delport <[email protected]>

> Hi,
>
> AFAIK you get the cdcdcd pattern in VS when trying to read memory that was
> not allocated. Check that you are not deleting data or pointing to invalid
> data.
>
> jp
>
> Andrzej Piatek wrote:
>
>> Hi,
>>
>> I have got problems with shader, my code to create working shader :
>>
>> {
>> (declarations)
>>  (...)
>>    vertexShader = new osg::Shader(osg::Shader::VERTEX);
>>    fragmentShader = new osg::Shader(osg::Shader::FRAGMENT);
>>
>>    vertexShader->loadShaderSourceFromFile("sphere.vert");
>>    fragmentShader->loadShaderSourceFromFile("sphere.frag");
>>    shaderProgram->addShader(vertexShader);
>>    shaderProgram->addShader(fragmentShader);
>>
>>
>>    stateSet->setAttributeAndModes(shaderProgram,osg::StateAttribute::ON);
>>
>> (...)
>>
>> }
>> When i write a simple program which only one or two objects and attach
>> the program into StateSet of those objects it works fine.
>> Problem starts when I wanted to include this code in bigger project,
>> application crashes and VS debug doesn't show me where is the bad code,
>> I only get : "0xC0000005: /Access violation/ reading location /0xcdcdcdcd
>> /"
>>
>> Where can be the problem ?
>>
>> Best regards,
>> Andrew.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
> --
> This message is subject to the CSIR's copyright terms and conditions,
> e-mail legal notice, and implemented Open Document Format (ODF) standard.
> The full disclaimer details can be found at
> http://www.csir.co.za/disclaimer.html.
>
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.  MailScanner thanks Transtec
> Computers for their support.
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to