cppman Posted March 10, 2006 Share Posted March 10, 2006 (edited) Okay, im making a DLLCall to the SDL library, and everything goes good... the window opens up, and then a few seconds later autoit crashes...This is all im doing..Func SDL_SetVideoMode($width, $height, $bit) DLLCall("SDL.dll", "int", "SDL_SetVideoMode", "int", $width, "int", $height, "int", $bit) EndFunchere ius a screenshot, of what happens Edited March 10, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
neogia Posted March 10, 2006 Share Posted March 10, 2006 (edited) Quick stab here, do you have a Pentium 4/HT or Pentium D processor? If so, there's an execute disable bit that goes off almost with every program I run that has to do with video. Subsequently I have to turn off the check for that specific program. If you don't have either of those processors, then I'm fresh out of ideas as I haven't really used DllCall extensively.Edit: Pentium 4/HT circa 2004 and later, Models 6xx and higher. Edited March 10, 2006 by neogia [u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia Link to comment Share on other sites More sharing options...
cppman Posted March 10, 2006 Author Share Posted March 10, 2006 i've got Celeron D.... how do i turn off the check? Miva OS Project Link to comment Share on other sites More sharing options...
neogia Posted March 10, 2006 Share Posted March 10, 2006 i've got Celeron D.... how do i turn off the check?Hmm, not sure Celeron has it, also non-WinXP Pro, but go ahead and give it a try.. Windows Key+Pause/Break Key>>Advanced Tab>>Performance Settings>>Data Execution Prevention Tab, then just select the second radio button and add AutoIt3.exe to the list. [u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia Link to comment Share on other sites More sharing options...
Developers Jos Posted March 10, 2006 Developers Share Posted March 10, 2006 doesn't have this function have 4 parameters ? Screen = SDL_SetVideoMode( 640, 480, 32, SDL_HWSURFACE | SDL_DOUBLEBUF ) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
cppman Posted March 10, 2006 Author Share Posted March 10, 2006 (edited) hmm, thanks. did'nt notice that. are those other parameters Structures? Edited March 10, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
Developers Jos Posted March 10, 2006 Developers Share Posted March 10, 2006 hmm, thanks. did'nt notice that.are those other parameters Structures?You mean you are calling a DLL without having a clue what it needs ???Happy Crashing SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
seandisanti Posted March 10, 2006 Share Posted March 10, 2006 (edited) You mean you are calling a DLL without having a clue what it needs ???Happy Crashingit's sad really, but i swear this is the funniest thing i've read all day. thank you jdeb.***edit*** fixed typo Edited March 10, 2006 by cameronsdad Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now