34,278 reputation
481209
bio website
location ND
age 29
visits member for 1 year, 4 months
seen 1 hour ago
stats profile views 3,140

contact details

Visit Mathematica.SE


1h
comment At what point should MLSetMessageHandler() be called?
@ToddGayley I noticed now that the output of mprep has MLMDEFN( void, MLDefaultHandler, ( MLINK mlp, int message, int n)) if MLINTERFACE >= 3, which seems to be the default for Mathematica 9. It has unsigned long otherwise.
1h
comment At what point should MLSetMessageHandler() be called?
@ToddGayley I was not aware that I need to send Abort[] explicitly when the return type is Manual, thanks for pointing that out!
1h
comment At what point should MLSetMessageHandler() be called?
@ToddGayley I got the msghandler prototype from this documentation page. It uses int types. I checked mathlink.h as well, and if I followed the definitions back correctly (it's easy to make a mistake with all the #ifdefs) then MessageHandlerObject is a MLHandlerUPP which is a MLHandlerProcPtr which is defined as MLMPROC( void, MLHandlerProcPtr, (MLINK mlp, int m, int n));. Are you sure that the arguments should be unsigned long?
14h
comment At what point should MLSetMessageHandler() be called?
What I ended up with eventually was defining a function callable from Mathematica that set up the handler. I think I could also move calling this function into the template file.
14h
comment At what point should MLSetMessageHandler() be called?
@ToddGayley and Leonid: Thanks! Otherwise does the handler look fine, calling stdhandler for everything except Interrupt and Abort? It was not clear to me which messages must be handled, and how.
16h
awarded  export
17h
awarded  Nice Question
20h
comment I want to draw a graph using a weighted Adjacency matrix
How do you want the weights to modify the drawing of the graph?
1d
revised CUDAQ[] returns False in version 9 while True in version 8
edited title
1d
answered CUDAQ[] returns False in version 9 while True in version 8
1d
answered How to set image DPI?
1d
comment Can one identify the design patterns of Mathematica?
@OleksandrR. That's true, it can be used in any language.
1d
comment CUDAQ[] returns False in version 9 while True in version 8
This has happened to me. Try this in v9: CUDAResourcesUninstall[]; CUDAResourcesInstall[]. The download will take some time.
1d
awarded  Nice Answer
1d
asked At what point should MLSetMessageHandler() be called?
2d
revised Can one identify the design patterns of Mathematica?
added 66 characters in body
2d
revised How to create a 3D curved surface, given some discrete points in space?
added 198 characters in body
2d
answered How to create a 3D curved surface, given some discrete points in space?
2d
comment Why my Mathematica 9.0.1 wont work with some samples of Mathematica in Graph Theory?
@Alex At this site we are just users like you. But when you find bugs like this, you can and should report them to support@wolfram.com and ask them about when it might get fixed.
2d
comment Why my Mathematica 9.0.1 wont work with some samples of Mathematica in Graph Theory?
@rcollyer The graph related functionality in particular seems to have too many bugs. :-(