超级奇怪的问题:c++中成员函数不能给成员变量赋值?
我今天调试程序,在.h文件中定义了两个新的成员变量
class H264VideoFileServerMediaSubsession: public FileServerMediaSubsession{
...
protect:
float fFileDuration;
int int fFiletest; }
在成员函数中引用了
FramedSource* H264VideoFileServerMediaSubsession::createNewStreamSource(unsigned /*clientSessionId*/, unsigned& estBitrate) {
estBitrate = 500; // kbps, estimate
// Create the video source:
ByteStreamFileSource* fileSource = ByteStreamFileSource::createNew(envir(), fFileName);
if (fileSource == NULL) return NULL;
fFileSize = fileSource->fileSize();
fFileDuration = 3600.00;
fFiletest = 9; // Create a framer for the Video Elementary Stream:
return H264VideoStreamFramer::createNew(envir(), fileSource);
}
。但调试时在红字处设置了断点,
但出现奇怪的问题。
红字的两句不能设置断点,而且调试运行时,fFileDuration 变量不能赋值,而fFiletest 不但不能赋值,更可气的是这个变量在把它放到监视窗口中竟然显示symbolic not found。
找了好长时间,也没找到问题,谁能帮我?我用的是vc6,调试的是纯c++的程序
谢谢了
class H264VideoFileServerMediaSubsession: public FileServerMediaSubsession{
...
protect:
float fFileDuration;
int int fFiletest; }
在成员函数中引用了
FramedSource* H264VideoFileServerMediaSubsession::createNewStreamSource(unsigned /*clientSessionId*/, unsigned& estBitrate) {
estBitrate = 500; // kbps, estimate
// Create the video source:
ByteStreamFileSource* fileSource = ByteStreamFileSource::createNew(envir(), fFileName);
if (fileSource == NULL) return NULL;
fFileSize = fileSource->fileSize();
fFileDuration = 3600.00;
fFiletest = 9; // Create a framer for the Video Elementary Stream:
return H264VideoStreamFramer::createNew(envir(), fileSource);
}
。但调试时在红字处设置了断点,
但出现奇怪的问题。
红字的两句不能设置断点,而且调试运行时,fFileDuration 变量不能赋值,而fFiletest 不但不能赋值,更可气的是这个变量在把它放到监视窗口中竟然显示symbolic not found。
找了好长时间,也没找到问题,谁能帮我?我用的是vc6,调试的是纯c++的程序
谢谢了
...全文
相关推荐
c++奇怪的魔塔
c++期末大作业,包含所学的各种知识点,代码易懂不超纲
Codevs 2833 奇怪的梦境.cpp
洛谷上的题目题解Codevs 2833 奇怪的梦境 c++ 新手勿喷,代码仅供参考(手动滑稽) 如果有问题及时提出改正
牛客 – 奇怪的背包问题增加了(贪心)
题目链接:点击查看 题目大意:中文题意 题目分析: 代码: #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ull; const int inf=0x3f3f3f3f; const int N=1e5+100; struct Node { int val,id;
奇怪按钮类
该资源是用于vc上自定义的一个自定义按钮
洛谷P1135:奇怪的电梯AC代码
ac代码,方法简单,易理解,推荐!!!!


