DLLImport和“First time exception” ? [英] DLLImport and "First time exception" ?

查看:61
本文介绍了DLLImport和“First time exception” ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。


我正在尝试使用来自 http://www.sipfoundry.org/ 进入一个
c#项目。在发布模式下它工作正常,但在调试模式下,当我调用

dll导入函数时,我得到:


Essai中的0x001a73c2的第一次机会异常sipx.exe:0xC0000005:

访问冲突读取位置0x001a73c2。


有人能指点我这个错误吗?在这种情况下,我无法找到一种方法

来查找该怎么做。如果我不打电话给dll导入

功能就可以了。


有什么想法吗?

Hi.

I am trying to use the sipX stack from http://www.sipfoundry.org/ into a
c# project. In release mode it works fine, but in Debug mode when I call
the dll imported function I get a :

First-chance exception at 0x001a73c2 in Essai sipx.exe: 0xC0000005:
Access violation reading location 0x001a73c2.

Can someone point me to something about this error ? I can''t find a way
to find what to do in such case. If I don''t call the dll imported
functions it''s ok.

Any idea ?

推荐答案



" Fabien Penso" < FA ********* @ gmailNOSPAM.com>在消息中写道

news:uF ************** @ TK2MSFTNGP15.phx.gbl ...

"Fabien Penso" <fa*********@gmailNOSPAM.com> wrote in message
news:uF**************@TK2MSFTNGP15.phx.gbl...
嗨。

我正在尝试使用 http://www.sipfoundry.org的sipX堆栈/ 进入一个
c#项目。在发布模式下它工作正常,但在调试模式下,当我调用dll导入的函数时,我得到一个:

Essai sipx.exe中0x001a73c2的第一次机会异常:0xC0000005:Access
违规读取位置0x001a73c2。

有人能指点我这个错误吗?在这种情况下,我找不到办法找到该做什么。如果我不打电话给dll导入的功能
它没关系。

任何想法?
Hi.

I am trying to use the sipX stack from http://www.sipfoundry.org/ into a
c# project. In release mode it works fine, but in Debug mode when I call
the dll imported function I get a :

First-chance exception at 0x001a73c2 in Essai sipx.exe: 0xC0000005: Access
violation reading location 0x001a73c2.

Can someone point me to something about this error ? I can''t find a way to
find what to do in such case. If I don''t call the dll imported functions
it''s ok.

Any idea ?




不,你应该至少发布函数声明(DllImport和C

函数声明)和调用它的代码部分。


Willy 。



No, you should post at least the function declarations (DllImport and the C
function declaration) the and the the code part that call''s it.

Willy.


Willy Denoyette [MVP]写道:
Willy Denoyette [MVP] wrote:

不,你应该发布至少函数声明( DllImport和C
函数声明)和调用'它的代码部分。

No, you should post at least the function declarations (DllImport and the C
function declaration) the and the the code part that call''s it.



当然。我使用的.dll是: http://penso.info/tmp/sipXtapid.dll http:/的

发布版本/penso.info/tmp/sipXtapi.dll
工作正常,这是...... b $ b怪......)。


C#代码如下:

http://lasalas.net/paste/ 535


Sure. The .dll I use is : http://penso.info/tmp/sipXtapid.dll (the
release version at http://penso.info/tmp/sipXtapi.dll works fine, it''s
strange...).

The C# code is as following :

http://lasalas.net/paste/535




" Fabien Penso" < FA ********* @ gmailNOSPAM.com>在消息中写道

news:ug ************** @ TK2MSFTNGP15.phx.gbl ...

"Fabien Penso" <fa*********@gmailNOSPAM.com> wrote in message
news:ug**************@TK2MSFTNGP15.phx.gbl...
Willy Denoyette [MVP]写道:
Willy Denoyette [MVP] wrote:

不,你应该发布至少函数声明(DllImport和
C函数声明)和调用''的代码部分s it。

No, you should post at least the function declarations (DllImport and the
C function declaration) the and the the code part that call''s it.



当然。我使用的.dll是: http://penso.info/tmp/sipXtapid.dll http://penso.info上的
发布版本/tmp/sipXtapi.dll
工作正常,它很奇怪......)。

C#代码如下:

http://lasalas.net/paste/535


Sure. The .dll I use is : http://penso.info/tmp/sipXtapid.dll (the
release version at http://penso.info/tmp/sipXtapi.dll works fine, it''s
strange...).

The C# code is as following :

http://lasalas.net/paste/535



C#代码看起来没问题,是时候启动调试器并逐步完成

sipxInitialize功能。


Willy。



The C# code looks ok, time to start the debugger and step through the
sipxInitialize function.

Willy.


这篇关于DLLImport和“First time exception” ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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