Sign in to follow this  
Followers 0
cppman

Crashes...

8 posts in this topic

#1 ·  Posted (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)
EndFunc

here ius a screenshot, of what happens

Posted Image

Edited by CHRIS95219

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by neogia

[u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia

Share this post


Link to post
Share on other sites

i've got Celeron D.... how do i turn off the check?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

doesn't have this function have 4 parameters ?

Screen = SDL_SetVideoMode( 640, 480, 32, SDL_HWSURFACE | SDL_DOUBLEBUF )


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

hmm, thanks. did'nt notice that.

are those other parameters Structures?

Edited by CHRIS95219

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

You mean you are calling a DLL without having a clue what it needs ???

Happy Crashing

it's sad really, but i swear this is the funniest thing i've read all day. thank you jdeb.

***edit*** fixed typo

Edited by cameronsdad

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0