Re: machine exception
- Posted by coconut Aug 03, 2012
- 1180 views
ne1uno said...
coconut said...
I get this error when calling Win32 API TextOut():
A machine-level exception occurred during execution of this statement (signal 5)
hDC = 1476465858
left = 10
top = 10
text = {116't',101'e',115's',116't'}
pUnicode = 36167784
result = <no value>
public procedure TextOut(atom hDC, integer left, integer top, sequence text) atom pUnicode, result pUnicode = allocate_unicode(text) result = c_func(iTextOut,{hDC, pUnicode,left,top,length(text)})
should that be?:
result = c_func(iTextOut,{hDC, left,top,pUnicode,length(text)})
That's right! Sometimes I have the nose to close on it to see the obvious mistake. Thanks!
Jacques

