C++ DLL In VB Crashing
Dec 9, 2011
I have a dll that someone made me in C++. I needed to use this dll in VB, in order to do that I had to make another dll in C++ that has functions I can call in VB.
The C++ dll I made has 4 functions. 2 callback functions that retrieve information from the original C++. And 2 functions that I can call from VB to send that information.
I know the original dll works fine as Ive tested it endlessly in a console app.
However when I use it with my dll and VB.. I get random crashes.
There is almost no code in my VB app as its just for testing. It just outputs the information so theres no problem there.
I believe the problem is in the C++ dll I made. I am pretty new with C++.I think maybe a variable gets accessed in 2spots at the same time (is this possible?) and causes it to crash?[code]...
View 2 Replies
ADVERTISEMENT
Sep 5, 2011
My app wont start up on any 32bit PCs. It brings an error. Ive tried all the solutions mentioned like going into Compile and changing the Platform, and other things. I have come to the conclusion it Might just be something faulty with my coding. Here is the only place in my code that could be doing it.
[Code]...
View 1 Replies
Jan 28, 2009
im creating a project on vb and every time i get quite far into it, it seems to stop taking in commands. For example i have form 1 with loads of buttons and wen i add another one and start debugging the new button (or whatever) wont be their, this has now happend three times and im getting very annoyed.
View 8 Replies
Nov 16, 2010
An application working fine on Microsoft Small Business Server 2003 (Windows 2003) 32 bit when installed on Microsoft Small Business Server 2008 (Windows 2008) 64 bit crashed with the following trace;SUB: MyApplication_UnhandledExceptionException Type: System.TypeInitializationExceptionMessage: The type initializer for 'IV.modMain' threw an excep
View 2 Replies
Aug 5, 2011
I developed a .net application which uses bonjour to chat with other instances of the app on LAN. The application works fine on 5 pcs(4 with xp sp3 and 1 with windows 7) out of 6. On one computer (with windows 7 installed) the app crashes as soon as i try to register into bonjour service.
After digging deep into the problem i noticed that too many svchost.exe processes are running on the pc on which app crashes. After carefully terminating the svchost.exe's i came to know that by terminating one svchost.exe which consumes around 50Mb Ram, the app works absolutely fine.
The process path "C:\Windows\System32\svchost.exe"
Process Command Line "C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted"
When i terminate the process, app starts working fine.
PS : Even after terminating the process restarts itself and app works fine.
View 2 Replies
Mar 17, 2011
I'm trying to get threading to work in ASP.NET but for some reason it keeps crashing my local server, and simply does not work at all when uploaded online. Here's the code:
[Code]...
View 3 Replies
Jun 1, 2009
but it's strange. I have a few combo boxes on a form that are fed via select query. They each are populated by their own table. Each of the tables feeding them have a codeassociated with a name, function etc... the code is what is stored in the form's table. I have another select query that converts the code to the name or whatever so that the user does not see the code, but the name associated with it when the form loads.What is happening is: The form loads and if i don't touch any of these combo boxes every thing is fine if i update them, I can't tab off the combo box or move the cursor anywhere, or even close the form. I have one of these boxes with the same code and it works fine.. I don't understand what is going on... I have an after update function that is the same on all of them and it is indeed updating correctly....
Public Shared Function LoadCallSource() As String
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Documents
and Settingsdiw07My DocumentsDaily Backupsphone memo backend.mdb"
[code].....
View 12 Replies
Jan 30, 2012
this just makes no sense at all right now...the last time that I was debugging my game, this worked fine, now it crashes my game every time I try to load... ok, I have the users chosen font saved to the my.settings file of the game, and now, every single time that I go to launch the game, it crashes upon trying to load this chunk of the my.settings file...
[Code]....
View 2 Replies
May 11, 2012
for our culminating activity we must make a program that uses a bunch of things etc.
i decided to go the extra mile and make sudoku.
The problem lies in generating the puzzle, the program always crashes, but there is never an error. im sure there are easy ways to make the generator, but from what we've learned this is the only way i know how to do it.
Private Sub FirstBlock()
Randomize()
intNumber(0, 0) = Int(9 * Rnd() + 1)
[Code]....
i made a function for each 3x3 square, and what happens is the block its currently on, checks for interferences horizontally, vertically, and within each 3x3 square, because computers process in order, i set it so that it only checks for previous block interferences, since this is the first 3x3 quadrant, there are no previous horizontal/verticals to check.
The code works fine, the problem is when i run it, it says its running but no form appears, i learned to use a progressbar to try and separate each 3x3 block to generate individually, to try and split the processes up 1 second at a time. the problem is, it does run, but it only generates a certain amount before it crashes, and every time its different, sometimes it generates half the puzzle, sometimes 1/3rd, sometimes only the first quadrant.
View 13 Replies
Feb 20, 2011
In a program I have written I have FileSystemWatcher pointed two directories. When there is a change it keys up and using a listbox rewrites the files in the folder to the listbox. This all works just dandy.. however..
I wanted to change the listbox out for a TreeView. When I first initialize the TreeView on program start, no problems, but when the FileSystemWatcher kicks in the program crashes. I have tried running the debug but it crashes without any error, just the windows error that the program has stopped working.
I am running Dual XEON Quads with 8Gb RAM and Win7 Pro up to date on all patches so there shouldn't be a problem there.
Here is the code for the listbox:
'Setup Filewatcher for Scan Folder List
Public scanfolder1 As FileSystemWatcher
Public scanfolder2 As FileSystemWatcher
[Code].....
View 4 Replies
Sep 18, 2011
I am really pulling my hair out on a problem with my VB Windows Forms app, which appears to be overwriting memory and causing everything on my system to start crashing - have to Logoff or Restart to get a stable system back. I have reported this problem on Connect [URL].. but no response as yet. I am hoping that someone can help me understand what I am doing wrong or how I can work around the problem.
View 1 Replies
Apr 15, 2010
Is there a way how i can see why my application keeps randomly crashing?
View 9 Replies
Jun 4, 2010
I am writing an application to compare each item on listbox1 to all items on listbox2. If the item is found, then remove it from both lists. The goal is to only have the items that were not found remain on both lists.
The problem is, the application just hangs and I never get any results. I looked at my code several times and I cannot figure out what's going on (programming noob I know.
[Code]...
View 4 Replies
May 17, 2010
I need to check and see if I can access a file(the file is in use) So When I try to access it the application crashes. When I can access the file without the application crashing I would like a msgbox to pop up.
View 3 Replies
May 30, 2011
it only fills the first element of the array catches on the second run through
Private Sub fillArrayFromFile()
Try
FileOpen(5, "Data.dat", OpenMode.Input)
While Not EOF(5)
[code].....
View 1 Replies
Jan 12, 2012
This is an annoying issue that started less than a week ago and couldn't come at a worse time, as I have a major project deadline to meet. At least once every TEN minutes, the program crashes with the error "Microsoft Visual Studio has stopped working" -- it only occurs when I am writing/editing code while execution is paused (Edit and Continue), which I do all the time since I am stepping through rather complex subroutines line-by-line. I literally have trained myself to save after each line of code I write, delete, or change, so thankfully I never lose much, if anything, when I restart, but it is irritating and time-consuming having to set up everything in the program and get to the place in the code that I was before. I have installed VS 2010 SP1, tried deleting the .suo file, and a few other supposed fixes that I came across online, to no avail.[code]...
View 5 Replies
Feb 27, 2009
I want to add a picture in my picturebox. I can do this with a normal link to my directory, but I want it relatively.I also have another problem with this picturebox. For some rows in my database, there isn't a filename in the Picture column. And when I select this row in my program. The program crashes because the program can't find a filename.What can I do to make sure that my program keeps working and that there is just no picture in my picturebox?This is the code I have now
Private Sub ShowPictureTonen()
Dim dtrPicture As dtsMuziekcollectie.tblDVDInhoudRow
Dim strLinkPicture As String
[code].....
View 4 Replies
Aug 10, 2011
I am loading 25000 records into my gridview with 70 Columns and it is crashing.
Why is it crashing?
View 1 Replies
May 13, 2011
Where it crashes(According to 3 messageboxes):
[Code]...
View 7 Replies
Sep 16, 2010
I've made a small application which has a Form (Form1) and a Class (SocketClass). The Class holds the very basic kind of coding to connect to a server and download data. All communications are done through Sockets based on asynchronous methods.What I do is that when my application starts and I click the Connect button my form, it creates a new class (SocketClass) and creates a new socket and connects to server asynchronously. After a connection is made, it starts a loop that keeps monitoring for incoming data. I do that by calling BeginRead.
My application works perfectly. But there is one problem. When I try to disconnect the socket, it crashes my application. I've played around a lot with the code now, it appears that it crashes when a BeginRead is in progress. As per MSDN, I have to call ShutDown or Close to cancel a BeginRead and disconnect the connection. But even if I do that, it crashes my application.
[Code]...
View 5 Replies
Jan 18, 2011
At my school i have to make a program and im almost done with it but everytime if i dont put any inputs on the program and press calculate it crashes. What should i write in the codes not to crash if all the inputs are empty.
View 7 Replies
Feb 27, 2009
I want to add a picture in my picturebox. I can do this with a normal link to my directory, but I want it relatively.I also have another problem with this picturebox. For some rows in my database, there isn't a filename in the Picture column. And when I select this row in my program. The program crashes because the program can't find a filename. What can I do to make sure that my program keeps working and that there is just no picture in my picturebox?This is the code I have now
Private Sub ShowPictureTonen()
Dim dtrPicture As dtsMuziekcollectie.tblDVDInhoudRow
Dim strLinkPicture As String
Dim intDvdID As Integer
[code].....
View 20 Replies
Dec 5, 2010
I create a new Windows Forms Application project in VB.NET without changing any of the settings or labels. Then I click on "Add Data Source" and go through the steps in my programming book. Except that Visual Studio is crashing with a message stating that VB encountered a problem...checking for causes...restarting VB.
Sometimes I get to click the "Debug and Run" button before this happens; other times, it occurs before I move all the labels in form from the data source; and still other times, it happens when I click the "Stop Debugging" button.
I have tried removing VB and reinstalling it, but this still is not helping. (If it matters, I'm getting my copy of VB from [URL]
How can I stop Visual Studio from crashing whenever I try to load or work with a Data Source?
View 1 Replies
Feb 8, 2011
How can I change my connection configuration of my datasets and project. I mean, my datasets are not hard coded, I am using dataset wizard. Now, I have to change the computer name to IP.
I am worried that it could give a destruction to my project. How could I change it easily and safe?
View 2 Replies
Dec 3, 2009
I need to watch onr folder using filesystemwatcher when a file is come in i have to send the file to websservice and recive processed file i done this. my question is if at the time 20 or 30 files come in how to do this 1 by 1 the webservice takes time to process its depends on the file size. so how to process 1 by 1 files correctly without crashing.
View 3 Replies
May 24, 2010
my program is crashing when i use this code to find the textlength of a text box.this is my code
TextBox13.AppendText("dcmd(" + TextBox14.Text + ", " + TextBox14.TextLength + ", cmdtext);" + vbNewLine)it crashes on textbox.14.textlength
View 7 Replies
Dec 9, 2010
I'm working on an application that will send an email at a certian point.I'm using System.Net.Mail and it works fine when I do a "Debug - Start Debugging". But when I build the application, and run it, it crashes the whole thing when it gets to the client.Send(message) part.[code]
View 7 Replies
Jul 7, 2009
Well after coding a very basic image viewing application all seemed well. All animated .gif files played beautifully, all .png, .jpg, .bmp, etc, initiated well. However I've now, for some unkown reason, hit a snag. The animated .gif files still play, but they crash after a few seconds of play. Providing this error:
Quote:
ExternalException was unhandled A generic error occurred in GDI+.
Here is my
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OpenFileDialog1.ShowDialog()
[code]....
why it's not working?
View 11 Replies
Apr 2, 2012
This is going to be a strange issue and I don't expect an answer,.I'm using Ghost32.exe to image HDDs within a Windows PE environment. With the release of WinPE 4.0, we can now use the 4.0 .NET framework. So in order to capture any errors that Ghost reports, I'm redirecting the standard error stream so I can review it later.
But, when I implement those two lines of code (highlighted below), the application crashes.I've implemented error logging with the UnhandledException event of the application, but it never fires during this error. All other errors fire, but this one does not.So I ran it in normal Windows and I receive the following error:Quote:The system cannot find the file specified
But when I comment out those lines, it opens just fine. So I'm a little confused.
[Code]...
View 1 Replies
Mar 8, 2011
I have an instance of webbrowser control called browser and a command button too on a single form. After clicking the submit button it crashes:
[Code]...
View 3 Replies