Hello Xu HuiJuan,
I found your zip file on the tech-talk archive and successfully downloaded
it to my machine. I was able to get it to build after making some small
changes - specified path to EPICS include directories, bypass missing
resource files, proper path to dll's at runtime etc.
When I debug this application I see that the channel name is an empty string
at this line.
AcPVName=(LPTSTR)(LPCTSTR)m_Channel;
Later on it creates a channel, but is unsuccessful because the channel name
is empty. The code does not take a different path if the status isn't
ECA_NORMAL.
status=ca_create_channel(PVName,0,0,0,&CHID);
Further below it crashes when it calls ca_clear_channel() for a channel that
has not been created (CHID wasn't initialized).
status=ca_clear_channel(CHID);
The application appears to run w/o crashing if I force a valid channel name.
Hoping that this advice proves to be useful,
Jeff
> -----Original Message-----
> From: Jeff Hill [mailto:[email protected]]
> Sent: Friday, November 18, 2005 10:25 AM
> To: 'Xu HuiJuan'; '[email protected]'
> Subject: RE: Getting CA data with VC
>
>
> Hello Xu HuiJuan,
>
> Your attachment, demo1.zip, was removed upstream of my host by e-mail
> filters at our site. Zip files can no longer be used to communicate source
> code over e-mail with users at our site. Perhaps you can attach the source
> files and the make files individually.
>
> > I use the Visual C++ .net to get ca data.
> > This is my program.
> > It can be compiled but can't be executed.
> > I don't know how to solve it.
>
> It's difficult to make any guess as to the cause with only this very
> minimal information. Please send an error message or better yet a stack
> trace from your visual C++ debugger if there has been a crash.
>
> Did you have a look at the MS VC++ build options in the CA reference
> manual?
>
> Does the caget program, installed by the EPICS base build, work at your
> site?
>
> Jeff
>
> > -----Original Message-----
> > From: Xu HuiJuan [mailto:[email protected]]
> > Sent: Friday, November 18, 2005 12:12 AM
> > To: [email protected]
> > Subject: Getting CA data with VC
> >
> > Hello,
> > I use the Visual C++ .net to get ca data.
> > This is my program.
> > It can be compiled but can't be executed.
> > I don't know how to solve it.
> > Thanks!
- Navigate by Date:
- Prev:
EDM on Windows + Hummingbird? Michael E Urashka
- Next:
Re: EDM wants to build on vxWorks-68040 target. Why? Mark Wagner
- 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
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Getting CA data with VC Lawrence T. Hoff
- Next:
Problem booting EPICS on RTEMS-uC5282 John Dobbins
- 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
2019
2020
2021
2022
2023
2024
|