MLConnect hangs using Visual C++ 7.1 (VS.NET 2003)
- To: mathgroup at smc.vnet.net
- Subject: [mg42204] MLConnect hangs using Visual C++ 7.1 (VS.NET 2003)
- From: "Langston, Matthew David" <langston at SLAC.Stanford.EDU>
- Date: Mon, 23 Jun 2003 05:49:43 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I recently recompiled my (previously working) MathLink program using Visual C++ 7.1 (a.k.a. VS.NET 2003), and now my MathLink program hangs (and uses 100% of my CPU) in the call to MLConnect when I Install[] it. The call to MLConnect occurs in the code automatically generated by mprep. Here are the first few lines in the automatically generated code, which should be identical for all MathLink programs. It is the line "_res = MLConnect(mlp);" that hangs and uses 100% of the CPU. <begin_code_snippet> int MLInstall( MLINK mlp) { int _res; _res = MLConnect(mlp); if (_res) _res = _doevalstr( mlp, 0); </begin_code_snippet> My MathLink program works when compiled and run using Visual C++ 7.0 (a.k.a. VS.NET 2002). I am using Windows-ml_v3r9, Windows XP Pro and Mathematica 4.2. Why does MLConnect hang and use 100% of my CPU when I use vc7.1? How do I work around this problem? Warmest regards, Matt -- Dr. Matthew D. Langston, Ph.D. SLD, Stanford Linear Accelerator Center langston at SLAC.Stanford.EDU