VC ++"exe"文件运行时错误! [英] VC++ "exe" Runtime Error!!

查看:135
本文介绍了VC ++"exe"文件运行时错误!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友!!


实际上,我从"Research in Motion"中获得了一个VC ++项目,该项目用于将Blackberry与PC连接起来.有两个程序,第一个是C ++,第二个是JDE.

我正在使用C ++程序,并且对该程序进行了很多修改,直到我正在传输文本或字符串之前,它都工作得很好.但是现在我必须传输二进制数据(字节数组),但是当我的程序要执行发送"功能而不是"exe"时,中断并显示错误消息:

此应用程序已请求运行时以一种异常方式终止它.
请与应用程序的支持团队联系以获取更多信息."


exe损坏的地方是:

Hello Friends!!


Actually i got a VC++ project from "Research in Motion" which is used to Connect Blackberry with PC. There are two Programs First is in C++ and Second is in JDE.

I''m working on C++ program and i modified that program a lot and It was working good till i was Transferring Text or Strings. But Now i have to Transfer Binary data(Byte Array) but when my program is to execute "Send" Function than "exe" break and shows the Error Message:

"This application has requested the Runtime to terminate it in an unusual way.
Please contact the application''s support team for more information."


The where exe is breaking is:

HRESULT result = _channel->WritePacket((unsigned char*)buf, lenght);


(此功能已在程序中预定义;不是我编写的)
(这里"buf"是我将其传递给此函数的字节数组,"length"是字节数组的长度)


我真的不知道


(This Function was Predefined in the program; It is not written by me)
(Here "buf" is the byte array which i passed it to this function and "length" is the length of the bytearray)


I really don''t know Can

_channel->WritePacket()

函数可以与ByteArray(二进制数据)一起使用吗?
但是我很确定它可以与简单文本一起使用.

我不知道该怎么办?
帮忙!!
我正在Windows XP SP3上使用MVS2008.
我也在MSDN上搜索了此错误;他们为我提供了HotFix,但这仅适用于Windows XP SP2. :(


提前谢谢大家:)


@Regards
Naveen Kumar Dushila

Function work with ByteArray(Binary Data)??
But I ampretty sure It works well with Simple Text.

I Don''t know What to do know???
Help!!
I am using MVS2008 on Windows XP SP3.
I also Searched this Error on MSDN; They were providing me a HotFix but that was for Windows XP SP2 only. :(


Thank You all in Advance :)


@Regards
Naveen Kumar Dushila

推荐答案

此错误可能是由于您的叮咬数组长度引起的.否则,如果长度正确,则可以尝试转到属性"->配置属性"-> c/c ++,并使运行时库成为多线程调试(/MTd)

我在64位操作系统上的exe中遇到了同样的问题.
This error can be because of your bite array length. otherwise if length is correct ,you can try as go to Property->Configuration Property->c/c++ and make Runtime Library as Multi-threaded Debug (/MTd)

i got same problem in my exe on 64bit operating system.


这篇关于VC ++"exe"文件运行时错误!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆