Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
<== Date ==> <== Thread ==>

Subject: Pointer corruption on Windows
From: "Koennecke Mark \(PSI\) via Tech-talk" <tech-talk@aps.anl.gov>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 31 Jul 2019 07:41:46 +0000
Hi,

I am trying to write a motor record driver for the PXI7344 motor controller from
National Instruments and I am experiencing a weird pointer corruption problem. 
First the environment:

- Windows 10, PSI computer security wants that
- MS Visual Studio 2010, I have to interface with the NI FlexMotion library which is EOL and from 
  this time
- base-3-14-12
- asyn4-25
- motorR6-9

I am using the asynMotorController. What I see in my debugger is that everything is fine with my 
pointer until epicsEventSignal(pollEventId_) is called in asynMotorController::wakeupPoller().
After that call my this pointer is corrupted and everything goes downhill from then. I tried to 
override wakeupPoller() to an empty method in order to get more information but then 
I get the pointer corruption on the call to  epicsEventWaitWithTimeout(pollEventId_, timeout) in 
asynMotorController::asynMotorPoller() 

Any ideas what could be wrong here? 

Best Regards,

     Mark Koennecke



Replies:
Re: Pointer corruption on Windows Mark Rivers via Tech-talk

Navigate by Date:
Prev: [motorPIGCS2] can't turn on servo state of PI E-712 Chiang, Liang-Chih [江良志] via Tech-talk
Next: pmac driver on Debian Stretch Davis, Mark via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
Navigate by Thread:
Prev: Re: AW: [motorPIGCS2] can't turn on servo state of PI E-712 Chiang, Liang-Chih [江良志] via Tech-talk
Next: Re: Pointer corruption on Windows Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
ANJ, 07 Aug 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·