debug编译正常,release编译有问题,怎么回事?(要崩溃了~~~~~~~)

xxb51357 2003-08-22 03:27:35
用Debug编译的一个dll运行很正常,当用release编译后却有问题,调用(是用一个dephi程序调用的)时弹出错误框提示:
Access violation at address F7A8A32C,read of address F7A8A32C
谁告诉我怎么解决?
...全文
42 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhouyong0371 2003-08-23
  • 打赏
  • 举报
回复
你的biB>>=32;有什么用?好像没有什么用了吧?
DisplayWorld 2003-08-23
  • 打赏
  • 举报
回复
QQ: 100026500
DisplayWorld 2003-08-23
  • 打赏
  • 举报
回复
拿全的工程来,我来看看。
xxb51357 2003-08-23
  • 打赏
  • 举报
回复
DisplayWorld(没齿骆驼):
非常谢谢,但是我整个程序美用一个new,也没有GDI操作,不会有内存泄露吧,怎样检查?
xxb51357 2003-08-23
  • 打赏
  • 举报
回复
天啊,我将try-catch加在其他语句上也行,好像是只要这个模块有try-catch就行,
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~现在都1:00了,~~~~~~~~就快疯了。
DisplayWorld 2003-08-23
  • 打赏
  • 举报
回复
Compiler Warning (level 3) C4290
C++ Exception Specification ignored

A function was declared using exception specification.

At this time the implementation details of exception specification have not been standardized, and are accepted but not implemented in Microsoft Visual C++.

Code compiled with ignored exception specifications may need to be recompiled and linked to be reused in future versions supporting exception specifications.

You can avoid this warning by using the warning pragma:

1)
add: #pragma warning( disable : 4290 )

2): 查你程序的内存泄露

xxb51357 2003-08-23
  • 打赏
  • 举报
回复
我将那个语句范围又缩小了一下,依然可行:
if(--l<0)break;
else
try{biB>>=32;}catch(...){}
xxb51357 2003-08-23
  • 打赏
  • 举报
回复
那是干什么用的,哪里有下的?我的问题解决了,但是有点不明不白的,
编译时有警告:warning C4290: C++ Exception Specification ignored
我在一个地方加了捕获异常的语句:
try{
if(--l<0)break;
else biB>>=32;
}catch(...){MessageBox(NULL,"为什么!??","xxx",MB_OK);}
疑惑:
1。如果try中的那条语句抛出异常的话,MessageBox应该会执行啊,但是运行后却看不到
2。加了try-catch之后我对异常没做任何处理,为什么运行却正常了
gooddingdang 2003-08-22
  • 打赏
  • 举报
回复
安装vc pack尝试一下

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧