|
|
|
Register •
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Stumped (Direct X clipper)
| Author |
Message |
|
CCullen
Joined: Thu Apr 28, 2005 7:01 am Posts: 2
|
 Stumped (Direct X clipper)
alright, i have this program that uses directX7. I have every thing running in 24 bbp. When i run it the program crashes so i do a debug and it says 0xC0000005: Access Violation and takes me to this codeing:
<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre> if (FAILED(lpdds->SetClipper(lpddclipper))) { free(region_data); return(NULL); } </pre><hr></blockquote>
i am done searching google like an idiot for an awnser so if someone can help me out that would be really nice.
|
| Thu Apr 28, 2005 1:34 pm |
|
 |
|
necron
Site Admin
Joined: Thu Jan 01, 1970 12:00 am Posts: 255
|
 Stumped (Direct X clipper)
To even get an access violation lpdds must be null, the set clipper function would be able to handle a null lpddclipper, but bottom line is make sure these handles/objects are valid.
Andre'
|
| Thu Apr 28, 2005 7:32 pm |
|
 |
|
CCullen
Joined: Thu Apr 28, 2005 7:01 am Posts: 2
|
 Stumped (Direct X clipper)
wow, that was a pritty stupid mistake. I fixed it, forgot to initialize directx, thanks alot.
|
| Thu Apr 28, 2005 9:33 pm |
|
 |
|
necron
Site Admin
Joined: Thu Jan 01, 1970 12:00 am Posts: 255
|
 Stumped (Direct X clipper)
Ouch, considering an oversight like that, just make sure to put your tool back in your pants before you zip up your zipper [img]images/smiles/icon_smile.gif[/img]
Andre'
|
| Thu Apr 28, 2005 10:03 pm |
|
 |
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|