in windows a simple test code using a callback to handle a button click was crashing when clicking the button. This was due to bad calling convention in defining the callback
I replace the euphoria call_back() function by the
following to solve the problem. I think this should be added in wrapper.e
global function eugtk_call_back(integer rid)
if myPlatform=FREEBSD then
return call_back(rid)
else -- windows
return call_back({'+',rid})--cdecl calling convention
end if
end function
Logged In: NO
Hi Micheal,
I downloaded 2.10 beta2 and I saw that you added eugtk_call_back in globals.gtk but
you didn't modified when() procedure in wrapper.e so the bug will persist if one is using when() to connect event handlers.
regards,
Jacques Deschênes