Dll中的奇怪错误文本 [英] Weird error text in Dll

查看:85
本文介绍了Dll中的奇怪错误文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个C ++ DLL,它由C ++ exe使用,我有另一个第三方开发。   exe崩溃了。 


我试图找到问题的根源而没有太多运气但我在文本编辑器中打开了dll以查看嵌入式清单并且可以跨越像下面这样奇怪。


看起来应该出现在编译构建日志中的一些编译错误。


任何人都可以启发这就是为什么这会出现在我的DLL中吗? 



未知运行时检查错误



    _alloca周围的堆栈内存已损坏



 在初始化之前使用了局部变量



   堆栈内存已损坏



   对较小数据类型的强制转换导致数据丢失。  如果这是故意的,你应该使用适当的位掩码掩盖演员的来源。  例如: 

$
char c =( i& 0xFF);



以这种方式更改代码不会影响最终优化代码的质量。



    ESP的值未在函数调用中正确保存。  这通常是调用使用一个调用约定声明的函数的结果,函数指针使用不同的调用约定声明。



    ¨



h

0



ä

             变量''周围的堆栈已损坏。    正在使用变量' '而未初始化。  运行时检查失败#%d - %s未知模块名称未知文件名
        R u n - T i m e  C h e c k  F a i l u r e  #%d  -   %s 我不知道  C h e c k  E r r o r。 


 

    U n a b l e  t o 我喜欢这个  R T C 信息 。  堆栈在未知变量附近损坏 正在使用变量而未进行初始化。 X


(v  堆栈_alloca损坏 初始化之前使用的局部变量 堆栈内存损坏转换为较小的类型导致数据丢失 堆栈指针损坏  



è

Ð

¤

" <登记/>
MSPDB80.DLL EnvironmentDirectory&NBSP;&NBSP; SOFTWARE\Microsoft\VisualStudio\9.0\Setup\VS&NBSP;&NBSP; RegCloseKey函数RegQueryValueExA&NBSP;&NBSP; RegOpenKeyExA&NBSP; ADVAPI32.DLL    PDBOpenValidate5   HH

H







 

问候格雷姆

解决案

有不是强制性的,一个DLL具有清单。因此,您可能找不到一个。


生成DLL时,默认情况下会包含您向我们展示的字符串。这不是什么危险,我确信这不是你问题的原因。


Im developing a C++ dll that is used by a C++ exe that I have another third party develop.   The exe is crashing. 

Im trying to get to the bottom of the problem and not having much luck but I opened the dll in text editor to look at the embeded manifest and can across weird like this below.

Looks like some compile errors that should appear in compile build log.

Can anyone enlighten be why this would be in my DLL? 

Unknown Runtime Check Error

   Stack memory around _alloca was corrupted

 A local variable was used before it was initialized

   Stack memory was corrupted

    A cast to a smaller data type has caused a loss of data.  If this was intentional, you should mask the source of the cast with the appropriate bitmask.  For example:  

char c = (i & 0xFF);

Changing the code in this way will not affect the quality of the resulting optimized code.

    The value of ESP was not properly saved across a function call.  This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

    ¨
ˆ
h
0

ä
                   Stack around the variable ' ' was corrupted.    The variable '  ' is being used without being initialized.  Run-Time Check Failure #%d - %s Unknown Module Name Unknown Filename        R u n - T i m e   C h e c k   F a i l u r e   # % d   -   % s   R u n t i m e   C h e c k   E r r o r . 
 
   U n a b l e   t o   d i s p l a y   R T C   M e s s a g e .   Stack corrupted near unknown variable   A variable is being used without being initialized. X
(v    Stack around _alloca corrupted  Local variable used before initialization   Stack memory corruption Cast to smaller type causing loss of data   Stack pointer corruption    




„
MSPDB80.DLL EnvironmentDirectory    SOFTWARE\Microsoft\VisualStudio\9.0\Setup\VS    RegCloseKey RegQueryValueExA    RegOpenKeyExA   ADVAPI32.DLL    PDBOpenValidate5    HH
 H


 

Regards Graeme

解决方案

It is not mandatory that a DLL has a manifest. Therefore you may not found one.

The strings you showed us were included by default when you generate the DLL. This is nothing stange and I'm sure that is not the reason of your problem.


这篇关于Dll中的奇怪错误文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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