Trap errors during function call
Posted: Mon Jan 05, 2009 11:52 am
Hello,
I mapped some functions made in PureBasic (using tecnique proposed by Lutz):
Now the problem is as soon as I call that mapped function from newLisp self, and I make a mistake in parameters datatype (e.g. I use a number instead a string) I get amemory access violation, and everything crash.
Is there any way to "grab" that memory violation error from newLisp self?
Thank you!
I mapped some functions made in PureBasic (using tecnique proposed by Lutz):
Code: Select all
(set 'MyFunction dummy1)
(cpymem (pack {ld} 265) (first (dump MyFunction)) 4)
(cpymem (pack {ld} @MyAddress) (+ (first (dump MyFunction)) 12) 4)
(cpymem (pack {ld} {MyFunction}) (+ (first (dump MyFunction)) 8) 4)
Is there any way to "grab" that memory violation error from newLisp self?
Thank you!