Jump to content

DllCallBack crash, if i don't move the GUI


Recommended Posts

Hello

my script stops after a few callback´s BUT: if i move the GUI (clicking in the titlebar and moving around) the callback is running well till i release the mousebutton...

$RecordCallBack=DllCallbackRegister ("_RecordCallBack", "int", "hwnd;ptr;int;int")

$BASS = DllOpen(@ScriptDir & "\bass.dll")
Global $HRecord,$cbcount=0

GUICreate("TestCallBack")
GUISetState()


DllCall($BASS, "dword", "BASS_RecordInit", "dword", 0)
DllCall($BASS, "dword", "BASS_RecordSetDevice", "dword", 0)
$HRecord = DllCall($BASS, "hwnd", "BASS_RecordStart", "dword", 44100, "dword", 2, "dword", 128, "ptr", DllCallbackGetPtr($RecordCallBack), "dword", 0)


While 1
    sleep(50)
WEnd



Func _RecordCallBack($hwnd,$ptr,$int1,$int2)
    Local $Ret
    $cbcount+=1
    ToolTip($cbcount & " " & $ptr & " " & $int1)
    Return 1
EndFunc

plz help

thx

...using (free) bass.dll from un4seen.com Download Bass.dll

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...