无效的程序异常 [英] Invalid program exception

查看:68
本文介绍了无效的程序异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用C#的新手,我无法在这个

错误上找到任何有用的帮助。


我正在运行WinXp,所有补丁和更新。我在

Visual Studio 2003下工作,最近我开始收到这个错误,当我用调试编译
时(F5):类型未处理的异常

" System.invalidprogramexception"发生在my.exe中


附加信息:常用运行时语言检测到无效

程序。


嗯,如果我没有debugginh(ctrl + F5)编译它运行正常没有

错误。


当我单步执行代码时,错误出现在调用

InitializeComponent();哪个VS创造了....


我走到了尽头。我已经删除了代码,但错误消失了,但没有确定原因。我慢慢地把代码放回去,只是为了让它全部回来而没有

错误,只是为了添加一些不相关的控件,错误弹出

。 br />

我还没有开始编写代码,这只是gui部分

的项目。


任何有关去哪儿的帮助或想法都将不胜感激。


Dave

解决方案

> ;我是新手使用C#,并且无法在此

错误中找到任何有用的帮助。

我正在运行WinXp,包含所有补丁和更新。我在Visual Studio 2003下工作,最近我在使用调试(F5)进行编译时开始收到此错误:类型未处理的异常
System.invalidprogramexception发生在my.exe中

附加信息:Common Runtime Language检测到一个无效的程序。

好吧,如果我编译没有debugginh(ctrl + F5)它运行良好,没有错误。

当我单步执行代码时,错误在调用
InitializeComponent()时出现; VS创造了......

我走到了尽头。我删除了代码,错误消失了,但不确定原因。我慢慢地把代码放回去,只是为了让它全部回来而没有
错误,只是添加了一些不相关的控件,然后再次弹出错误。

我还没有开始编写代码,这只是项目的gui
部分。



如果你能在这里发布你的代码我们可以看看是什么

可能出错了。

但这个例外也可能是由于

视觉工作室中的可执行文件损坏造成的。


-

cody


免费工具,游戏和幽默
http://www.deutronium.de.vu || http://www.deutronium.tk

" codymanix" <无**************** @ gmx.net>写在

新闻:eZ ************* @ TK2MSFTNGP10.phx.gbl:

我是新手使用C#,我无法找到任何有用的帮助来解决这个
错误。

我正在运行WinXp,包含所有补丁和更新。我在Visual Studio 2003下工作,最近我在使用调试(F5)进行编译时开始收到此错误:
类型System.invalidprogramexception的未处理异常发生在my.exe中

附加信息:Common Runtime Language检测到一个无效的程序。

好吧,如果我编译没有debugginh(ctrl + F5)它运行良好,没有错误。

当我单步执行代码时,错误在调用
InitializeComponent()时出现; VS创造了......

我走到了尽头。我删除了代码,错误消失了,
但不确定原因。我慢慢地把代码放回去,只是为了让它全部恢复而没有错误,只是添加了一些不相关的控件,然后再次弹出错误。

我还没有开始编写代码,这只是项目的gui


部分



它会如果你可以在这里发布你的代码,我们可以看到可能出错的代码,那就太棒了。
但是这个异常也可能是由于Visual Studio中可执行文件损坏造成的。

-
cody

免费工具,游戏和幽默
http://www.deutronium.de.vu || http://www.deutronium.tk



我可以发布代码,但现在大约4mb未压缩...


我还安装了Borlands C#Builder,并得到了同样的错误,所以我想

可能会缩小到代码范围。 8(


Dave


" codymanix"< no ************* ***@gmx.net>写在

新闻:eZ ************* @ TK2MSFTNGP10.phx.gbl:

我是新手使用C#,我无法找到任何有用的帮助来解决这个
错误。

我正在运行WinXp,所有补丁和更新。我在Visual Studio 2003下工作,最近我在编译调试时开始收到这个错误(F5):
类型的未处理异常系统.invalidprogramexception"发生在my.exe中

附加信息:Common Runtime Language检测到一个无效的程序。

好吧,如果我编译没有debugginh(ctrl + F5)它运行良好,没有错误。

当我单步执行代码时,错误在调用
InitializeComponent()时出现; VS创建了...... 。

我走到了尽头。我已经搬走了ed代码,错误消失了,
但不确定原因。我慢慢地把代码放回去,只是为了让它全部恢复而没有错误,只是添加了一些不相关的控件,然后再次弹出错误。

我还没有开始编写代码,这只是项目的gui


部分



它会如果你可以在这里发布你的代码,我们可以看到可能出错的代码,那就太棒了。
但是这个异常也可能是由于Visual Studio中可执行文件损坏造成的。

-
cody

免费工具,游戏和幽默
http://www.deutronium.de.vu || http://www.deutronium.tk



我可以发布代码,但现在大约4mb未压缩...


我还安装了Borlands C#Builder,并得到了同样的错误,所以我想

可能会缩小到代码范围。 8(

Dave


I am new to using C#, and am not able to find any useful help on this
error.

I am running WinXp, with all the patches and updates. I am working under
Visual Studio 2003, and recently I started to recieve this error when I
compile with debugging (F5): an unhandled exception of type
"System.invalidprogramexception" occurred in my.exe

Additional information: Common Runtime Language detected an invalid
program.

Well, if I compile with no debugginh (ctrl + F5) it runs fine with no
errors.

When I step through the code, the error comes up during the call to
InitializeComponent(); which VS created....

I am at a dead end. I have removed code, and the error went away, but not
sure why. I slowly put the code back, only to get it all back with no
error, only to add a few more unrelated controls, and the error pops up
again.

I have not even started to write code yet, this is all just the gui portion
of the project.

Any help or ideas for where to look would be greatly appreciated.

Dave

解决方案

> I am new to using C#, and am not able to find any useful help on this

error.

I am running WinXp, with all the patches and updates. I am working under
Visual Studio 2003, and recently I started to recieve this error when I
compile with debugging (F5): an unhandled exception of type
"System.invalidprogramexception" occurred in my.exe

Additional information: Common Runtime Language detected an invalid
program.

Well, if I compile with no debugginh (ctrl + F5) it runs fine with no
errors.

When I step through the code, the error comes up during the call to
InitializeComponent(); which VS created....

I am at a dead end. I have removed code, and the error went away, but not
sure why. I slowly put the code back, only to get it all back with no
error, only to add a few more unrelated controls, and the error pops up
again.

I have not even started to write code yet, this is all just the gui portion of the project.


It would be great if you could post your code here that we can see what
might gone wrong.
But this exception could also be caused by a damaged executable file in
visual studio.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk


"codymanix" <no****************@gmx.net> wrote in
news:eZ*************@TK2MSFTNGP10.phx.gbl:

I am new to using C#, and am not able to find any useful help on this
error.

I am running WinXp, with all the patches and updates. I am working
under Visual Studio 2003, and recently I started to recieve this
error when I compile with debugging (F5): an unhandled exception of
type "System.invalidprogramexception" occurred in my.exe

Additional information: Common Runtime Language detected an invalid
program.

Well, if I compile with no debugginh (ctrl + F5) it runs fine with no
errors.

When I step through the code, the error comes up during the call to
InitializeComponent(); which VS created....

I am at a dead end. I have removed code, and the error went away,
but not sure why. I slowly put the code back, only to get it all
back with no error, only to add a few more unrelated controls, and
the error pops up again.

I have not even started to write code yet, this is all just the gui


portion

of the project.


It would be great if you could post your code here that we can see
what might gone wrong.
But this exception could also be caused by a damaged executable file
in visual studio.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk



I can post the code, but it is about 4mb uncompressed right now...

I also installed Borlands C# Builder, and get the same error, so I guess
that might narrow it down to the code. 8(

Dave


"codymanix" <no****************@gmx.net> wrote in
news:eZ*************@TK2MSFTNGP10.phx.gbl:

I am new to using C#, and am not able to find any useful help on this
error.

I am running WinXp, with all the patches and updates. I am working
under Visual Studio 2003, and recently I started to recieve this
error when I compile with debugging (F5): an unhandled exception of
type "System.invalidprogramexception" occurred in my.exe

Additional information: Common Runtime Language detected an invalid
program.

Well, if I compile with no debugginh (ctrl + F5) it runs fine with no
errors.

When I step through the code, the error comes up during the call to
InitializeComponent(); which VS created....

I am at a dead end. I have removed code, and the error went away,
but not sure why. I slowly put the code back, only to get it all
back with no error, only to add a few more unrelated controls, and
the error pops up again.

I have not even started to write code yet, this is all just the gui


portion

of the project.


It would be great if you could post your code here that we can see
what might gone wrong.
But this exception could also be caused by a damaged executable file
in visual studio.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk



I can post the code, but it is about 4mb uncompressed right now...

I also installed Borlands C# Builder, and get the same error, so I guess
that might narrow it down to the code. 8(

Dave


这篇关于无效的程序异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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