|
|
|
|
 运行程序怎么跑飞了? - xdx_007 [ 2006-03-31 15:58 | 258 byte(s)]
 Re: 运行程序怎么跑飞了?请高人指点! - xdx_007 [ 2006-03-31 21:36 | 1,163 byte(s)]
 Re: 运行程序怎么跑飞了?请高人指点! - lonelyflyer [ 2006-04-01 16:26 | 1,109 byte(s)]
 Re: 运行程序怎么跑飞了?请高人指点! - xdx_007 [ 2006-04-03 09:30 | 433 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
printf("test30
");
status = script->ParseData(fh, data, size);
printf("test40
");
运行程序怎么跑飞了?没有真正执行script->ParseData(fh, data, size)?
我是用gcc编译*.cc程序。
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
void ParseSoundStreamBlock()
{
printf("tagSoundStreamBlock
");
}
/*********************************************************/
FlashHandle
FlashNew()
{
FlashMovie *fh;
fh = new FlashMovie;
fh->main = new CInputScript;
fh->main->ParseSoundStreamBlock(); 为什么不执行这条语句,因为没有打印输出?
------------------------------------------------------
return (FlashHandle)fh;
}
/*********************************************************/
struct CInputScript : public Dict
{
int level;
struct CInputScript *next;
int needHeader;
CInputScript(int level = 0);
~CInputScript();
int ParseData(FlashMovie *movie, char * data, long size);
void ParseSoundStreamBlock(); // 19: stagSoundStreamBlock
-----------------------------------------------
};
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
void CInputScript::ParseSoundStreamBlock()
{
printf("tagSoundStreamBlock
");
}
/*********************************************************/
FlashHandle
FlashNew()
{
FlashMovie *fh;
fh = new FlashMovie;
fh->main = new CInputScript;
fh->main->ParseSoundStreamBlock(); 为什么不执行这条语句,因为没有打印输出?
------------------------------------------------------
return (FlashHandle)fh;
}
/*********************************************************/
struct CInputScript : public Dict
{
int level;
struct CInputScript *next;
int needHeader;
CInputScript(int level = 0);
~CInputScript();
int ParseData(FlashMovie *movie, char * data, long size);
void ParseSoundStreamBlock(); // 19: stagSoundStreamBlock
-----------------------------------------------
};
|
|
|
----
mount -o sync,dirsync
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
不好意思,发贴时搞错了,情况是这样的:
void CInputScript::ParseSoundStreamBlock()
{
printf("tagSoundStreamBlock
");
} //调用类里的函数,这样就没有打印输出,
void ParseSoundStreamBlock()
{
printf("tagSoundStreamBlock
");
} // 直接调用,就有打印输出
|
|
|
[Original]
[Print]
[Top]
|
|
|