Page 1 of 1

Controlling window callback causing crazy crashes? Crap!!!

Posted: Fri Sep 09, 2005 1:33 am
by halo
This crashes on the MessageRequester() command.

Code: Select all

Procedure cb(WindowID, Message, wParam, lParam)
  Result = #PB_ProcessPureBasicEvents
  ;
  ; you code here
  ;
  ProcedureReturn Result
EndProcedure

OpenWindow(0,200,200,400,300,0,"")
SetWindowCallback(@cb)
MessageRequester("","Hello.")

Posted: Fri Sep 09, 2005 2:46 am
by MrMat
Try this:

Code: Select all

SetWindowCallback(@cb()) 

Posted: Fri Sep 09, 2005 2:57 am
by halo
I am stoopid.

Posted: Fri Sep 09, 2005 2:58 am
by MrMat
Nah, just one of those days probably!

Posted: Fri Sep 09, 2005 3:00 am
by Brice Manuel
I am stoopid.
Nah, we all make mistakes like this, especially if you are tired.