Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

Here is my code. My problem with this code is ,it stops or hangs the application when I writing values in pImBuffer.
It stops after pImBuffer[100] reaches as length of pImBuffer is [357120].
And it is passed by reference.

Please Help....



C#
for(i=0;i<Height;i++)
{
    for(j=0;j<Width;j++)
    {
       
    pImBuffer[i * Width + j] = pInputBuffer[i * Width + j];
        
    }
}



Thanks all
Posted
Comments
Richard MacCutchan 14-Apr-12 7:10am    
Help with what? We have no idea what this code is doing or what the values of Width or Height may be. You need to give a lot more detail before anyone can guess what your program is doing.
Sanjay_Prajapati 14-Apr-12 7:47am    
Width = 744 and Height = 480
and It is putting values related to appropriate index from pInputBuffer to pImBuffer.

Richard MacCutchan 14-Apr-12 8:42am    
That does not help to diagnose what your problem may be. You need to get to work with your debugger and see exactly what is happening in this code to make sure that the values are not being corrupted in any way, or that some other issue is actually causing your problem.
Sanjay_Prajapati 16-Apr-12 0:12am    
Thanks for Reply....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900