Error While Running Program
Jun 22, 2010I got error when i running the program
[code]...
I got error when i running the program
[code]...
So my class was recently given an assignment to make a Tic Tac Toe program with options of playing against the computer, or another person. I was able to 2 player game work, but I have run into a problem with the two player game. Whenever I start debugging and click on one of my buttons (these represent the 9 spaces on a tic tac toe board), the gameplay form freezes, and becomes uncontrollable. The close button on the form doesn't even work, I have to go back to VB and click stop debugging to close the unresponsive form. I checked my original two player game, which has a similar code, but that works just fine. VB does not show any error messages or give any warning.
Option Strict On
Public Class frmGameplayEasy
Dim intTurn As Integer = 1
[code]......
When I run a certain project from within the IDE and an error would come up (just any error, like dividing by 0), it won't jump into the IDE showing me the line where the error occured, but the program is simply ended and I am back in the IDE!.With any other project that is not the case. I cannot work further on this project with this problem. Of course I did a PC restart, but that didn't solve it.
I got Visual Studio Professional 2008 with SP1.
My program working fine during debug stage but somehow after create installer & install the program, the error prompt out..[code]The interop.dao.dll is auto include when add the project output.Not sure when create the installer, there's warning prompt as pic attachment will affect the result or not. Also, there's red line hightlight the sccrun.dll.
View 4 Repliesi currently have another problem beside programs code , when i give the program to another person and when he tries to open it he get an error Title = WIndowsApplication1Content = Application WindowsApplication1 has a problem and must terminate its operation.We appologize for the inconvenience.
View 10 RepliesI am trying to create a grid view in visual studio by connecting to a server and using a stored procedure. I am getting a time out error when I test it out. Can someone advise me as to what I can do? The query itself takes about 7 minutes to complete. The data is stored in a table. What can I do to extend the timeout?[code]...
View 3 Repliesi have developed a small application and was working fine on developing machine but when i installed it on another computer and double click on it to start it starts and after splash screen it gives don't send error [an error occurred] and getting closed.
View 3 RepliesI just got Windows 7, so I re-installed VB 2008 Express and have been met with some weird issues. One of which is when my program is running it used to break on a line where an error was occurring and tell what it was and let me fix it and continue. So I can see the error in the Immediate window but why is it not breaking on the line? It just continues loading the program. Is there a setting I'm missing?
View 4 RepliesI'm making a program from witch one could run an application with different credentials.I can compile the program successfully, but when I press the button to run the program I get the following error: Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.The system cannot find the specified file.The code behind the button is as follows:
Dim myProcess As System.Diagnostics.Process = New System.Diagnostics.Process()
myProcess.StartInfo.FileName = "c:
un.bat /user:kreathyr c:getlogin.exe"
myProcess.Start()
Getlogin.exe does nothing but show the logged in username and run.bat utilizes the runas command.
I get this error on this line: System.Runtime.InteropServices.Marshal.Copy _
(Scan0, Data2, 0, Data2.Length)
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I also sometimes get an error on this line:
Dim dc1 As IntPtr = CreateDC("DISPLAY", Nothing, Nothing, CType(Nothing, IntPtr))
What I'm trying to do is take a screenshot and then read the colors of pixels. I currently have a working vb.net copyfromscreen method but it's SLOW and using 100% cpu usage.
[Code]...
I have a batch file. It includes two lines, as follows: pkgmgr /n:unattend.xml pause I have run this batch file manually and it works (installs IIS on the local machine). But when I try to run it in code I get an error: "An attempt was made to load a program with an incorrect format". Here is my code to run the batch file:
[Code]...
is it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 RepliesI want to prevent my program from running when it is already running.How can I do that in my vb2008 Code?
View 1 RepliesI wrote this VB program to be able to throw a device we developed into programming mode where we use an ATMEL Flip installer to upload new firmware. I can program one device after another running the application off of Visual Studio Express 2010 or Visual Studio 2010, but when I go to publish this file and run it on another machine, it becomes unstable and crashes after each upload. On those same computers if I run the raw unpackaged program under Visual Studio Express, the system does not crash, and I can program devices repeatedly.
View 5 RepliesThe program has errorhandle and write log function, however, it could not catch the error message in the program.
The following error message in Event Viewer. Error Module: oleaut32.dll ,version 5.1.2600.5512, error code: 0x000048f9
have you of any ideas in why does my software in vb 2010 still exist in the task manager (process tab), after i closed the program? i noticed it when i want to delete the .exe file.
View 10 RepliesI want to create a program that will run every start of computer and will check if it is 9:00 AM and can only be seen at the bottom right cornner besides the clock. When the program executes must show an notification that the program is running.
View 4 RepliesI'm not sure it it's right subforum, but i'm completly lost and a bit in hurry with that ;/ :
I'm a beginer - i've been learning vb just since few weeks and never have tried to run my project on some other computer
I've copied my project folder (which is running without errors) to another machine and here i get an error :
The file (""path to my database.mdf) is on a netowrk pat that is not supported for database files.An attempt to attach an aut-named database for file "once again that path" failed. A database with the same name exist, or specified file cannot be opened, or it is located on UNC share
I had the battle system 60% worked out. Went to play some Dragon Age, when I came back nothing was working as the way I left it. I don't know what happened.The richtext box is supposed to disaply the attack monster description, and then it's name, the amount of damage it does. I had it so that I could attack, be attacked, and display damage, and attack discription of both player and monster. when I opened my project to work on it again, hardly anything was working right.[code]
View 9 Repliesim a wrtiting a simple vb.net problem that when a button is clicked it launches the command prompt.all i need it to do is open cmd on a buttonclick. i have used [code]this works fine if i substitute iexplore.exe for cmd.exe but when i try to run cmd i get an error message below.
View 1 RepliesI am writing a program (that i have recieved a lot of help with) that creates input files for another program. The bridge between the two programs is a program that has been named the task manager as like the windows task manager it shows what tasks are being done/have been done/are about to be done (or executed)
What i would like to know is how can i run the already installed bridge program from my program? Do i need to run it by opening the executable that contains it? Or by declaring the bridge program as a type/structure/class and going from there to open it?If you're not living on the edge, you're taking up too much room
I can't find why my application is working in some pc's. i have install the net framework 1.1 and when i run it i am getting system runtime.interopservices.comexception occurred in system.windows.forms.dll additional information class not registered i understand that something missing because i am usuing also activex controls i does't seems to be register problem because in some other pc's is working.if io install vb6 the problem is solved.what is missing?
View 6 RepliesI'm getting the following error while executing my form:
An error occurred creating the form. See Exception.InnerException for details. The error is: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "WindowsApplication1.TravelRequestForm.resources" was correctly embedded or linked into assembly "TravelLog" at compile time, or that all the satellite assemblies required are loadable and fully signed.
In the details section of the error the following message is displayed
[Code]...
we have this situation, we need to 'force' user to do stock opname at specified time, so when the time has arrived..the stock opname program will run while their current running is'freeze' until the opname is done..
View 10 RepliesHow do I best speed up running of my program?Once I have simplified code as much as possible, made it smaller. By using loops were appropriate etc.
View 7 RepliesHow do I best speed up running of my prog?Once I have simplified code as much as possible, made it smaller. By using loops were appropriate etc.
View 1 RepliesHow to block a program from running twice. Show a message box when the program is executed twice
View 1 RepliesAlthough I signed up a year ago I didnt have enough free time to carry on programming, but have now made some time.
I have spent the past 2 hours trying to look for a code for visual basic 2008 that will check if a program is running.
It would be really helpful if someone wrote the whole code out and made it clear exactly where I put them name of the .exe file
I am creating a program that will check if a program is running, by checking its window title (NOT THE FILENAME, ITS WINDOW TITLE) and seeing if it is currently running.
So far I was only able to check if the program was running by its filename
[Code]...
I'm making a program in VB to check if a certain program is running, and if not, to start it up, because I'm hardly ever at my computer and sometimes the program that is being checked for existence tends to close down often, so I need something that will check for the existence of the program in question, and start it if it's not running
View 4 Replies