Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Direct3D
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

ppStreamData->Lock (crashing)
Old 08-31-2010, 06:14 AM   #1
Supreme G0d

Anddos's Avatar

Join Date: Dec 2009
Posts: 360
Reputation: 2804
Rep Power: 61
Anddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating community
Points: 3,540, Level: 5
Points: 3,540, Level: 5 Points: 3,540, Level: 5 Points: 3,540, Level: 5
Activity: 29.4%
Activity: 29.4% Activity: 29.4% Activity: 29.4%
Last Achievements
ppStreamData->Lock (crashing)

I am trying to lock the vertex data in the DrawIndexPrimitive hooked function but for some reason its crashing..., does anyone know why?

Code:

typedefstruct d3dvertex_s
{
float x, y, z, rhw;
//DWORD color; //dont need atm
//float tu, tv; //dont need atm
} d3dvertex_s;
 
d3dvertex_s *m_pVertex;
 
m_pIDirect3DDevice9->GetStreamSource(StreamNumber,&ppStreamData,&pOffsetInBytes,&pStride);
sprintf(oBuffer,"%s %d\n","pStride",pStride);
outfile << oBuffer;
 
 
hr = ppStreamData->Lock(0,0,(void **)&m_pVertex, D3DLOCK_DISCARD); 
if(SUCCEEDED(hr))
{
sprintf(oBuffer,"%s\n","Lock OK");
outfile << oBuffer;
}
 
Anddos is online now

Reply With Quote


Old 08-31-2010, 06:30 AM   #2

CallMeEclipse's Avatar

Join Date: Jul 2009
Location: California
Posts: 2,330
Reputation: 33489
Rep Power: 412
CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!CallMeEclipse has a huge epeen!
Delta Fighter Champion Jumpin Joe Champion
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (1)
Points: 26,395, Level: 23
Points: 26,395, Level: 23 Points: 26,395, Level: 23 Points: 26,395, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
D3DLOCK_NOSYSLOCK

unless buffer was created with D3DUSAGE_DYNAMIC

edit: read: http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx

go down to 'using dynamic vertex and index buffers'
__________________


(1217 AM) uNrEaL: One man's slap in the face is another man's slit throat

Last edited by CallMeEclipse; 08-31-2010 at 06:34 AM.
CallMeEclipse is offline

Reply With Quote

Old 08-31-2010, 06:47 AM   #3
Supreme G0d

Anddos's Avatar

Threadstarter
Join Date: Dec 2009
Posts: 360
Reputation: 2804
Rep Power: 61
Anddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating communityAnddos is a legend in the cheating community
Points: 3,540, Level: 5
Points: 3,540, Level: 5 Points: 3,540, Level: 5 Points: 3,540, Level: 5
Activity: 29.4%
Activity: 29.4% Activity: 29.4% Activity: 29.4%
Last Achievements
Quote:
Originally Posted by CallMeEclipse View Post
D3DLOCK_NOSYSLOCK

unless buffer was created with D3DUSAGE_DYNAMIC

edit: read: Performance Optimizations (Direct3D 9) (Windows)

go down to 'using dynamic vertex and index buffers'
ive tried that its still crashing :/
Anddos is online now

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
crashing, ppstreamdata&gtlock, ppstreamdata>lock
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 11:35 AM.