I have the following code below in which I have a class with some class level Excel objects defined.When I call excelModule.Test from another class all these Excel objects are getting created and I can see an Excel instance in Task manager.
Do we have unload event for class to release these objects? Module excelModule Public myRange As Excel.Range
I have been dealing with this problem for awhile now, and ever since I tried publishing my application, I keep getting this error:Error1Could not find file 'Microsoft.Windows.Common-Controls, Version=6.0.0.0, Culture=*, PublicKeyToken=6595b64144ccf1df, ProcessorArchitecture=*, Type=win32'.ifxtweet2
What are the best practices to develop a software in such a way that I can release updates, I mean I can release an update which replace the existing executable but in case I have added some new references (dlls) to the project this won't work ? Is there any way I can do it without running an MSI?
I changed my VB2008 Express development system from Windows XP to Windows 7.After installing Windows 7 I installed VS2010 with VB2010 Express.Tried that and had issues so I installed VS2008 with VB2008 Express.The application I was developing with VB2008 on my XP system will compile and run in the debug environment with VB2008 on Windows 7 but the Release build (double clicking the .exe in the Release directory) will not. An information box pops up stating the application stopped working. No application Form ever showed up on the screen. I can run a simple application I start from scratch on this new setup.The release .exe compiled on my old XP system fails in the same way.What could be the problem? The application of interest uses an SQL Server CE database. A reference forSystem.Data.SqlServerCe is included in the References. What could be different about running in the debug environment vs running the
I've got a VB.net application. Currently the release version of the application is produced without a PDB file. This gives me error logs lacking useful details such as line numbers. I'm looking at including the PDB files with future builds but i'd like to know what the advantages and disadvantages of this are (performance wise, size wise, code security wise)
An application that has 3 Webbrowsers instantiated at design time navigates to webbrowser2 15 times every minute with a different webpage. Webbrowser2 is disposed of after each web page is received and processed. The size of the private application memory continues to grow as when the disposal was not instigated. The application memory grows to 1GB and then the program stops responding. Any suggestions? [Code]
I am making an application that will organize the movies and their release dates for me and that it will notify me whenever a movie is released. So far I have the layout almost done with some parts missing.
BASICS
1. At the top as you can see I want the text to display the current day and having the tool tip to say "Today is Tuesday 19, 2009" while I want the text to be centered.
2. I want to have a poster with a specific size (dimensions) that will be displayed when the movie is selected at the data grid and I want the buttons to be able to select the previous or next data grid line, meaning next/previous movie.
3. I want to make the buttons either check all the boxes or uncheck them all. And I want the validate button to be able to compare the date of the selected movie with the current day and tell me If it was released today or not.
4. I will make a menu at the top that will be giving you the ability to add movies or select and delete movies, while when adding being able to specify a poster for the movie.
5. I want every time that I run the app to automatically check the dates and either ask me to remove those who have been released some time ago or give me a message like "Movie was released today".
1. F11 => my application minimizes and hides another window (windowHandle is its handle), then sends there WM_RBUTTONDOWN (right mouse button click&hold).
2. F12 => my application unhides and restores that window, then sends WM_RBUTTONUP (right mouse button release).
The problem is when I press F11, and then click somewhere (so windowHandle loses focus), the right mouse button releases automatically, but I want it could be released only after I press F12. Here is part of my
Public Sub Tick() Dim windowHandle As IntPtr = FindWindow(vbNullString, "App") If GetAsyncKeyState(Keys.F11) Then
[CODE]...
So, is there any way how to not release right mouse button?
i am using visual studio 2005 on win 7 with office 2007. i have developed win application. i am using microsoft activex spreadsheet component in my program. so it automatically creates reference to AxInterop.OWC11.dll When i run program in debug mode (open program and click RUN in toolbar it works) but if i run directly .exe (go to bin elease doubleclick .exe) it give error at loading point of that component. It says "Attempted to read or write protected memory. This is often an indication that other memory has been corrupted." An unhandled exception occurrs.
Currently we are using the Microsoft data access library Writen with a Oracle data provider for the framework 1.1. My customer has mandated that we upgrade from Oracle 10G to 11G release 2. 11G requires the .net framework 2.0 Is there a way to use the new Oracle data provider 11g release 2 with the older frame work. I have looked at/attempted changing the policy for oracle in the Windows assembly but my understanding is because its a third party DLL, I cannot.
in main form, when a button is clicked, it opens a new form which has a webbrowser. users can use it to browser some sites. if the user closed this form, it goes back to the main form. and they can click button to open the browser form again.
I noticed that one thing. if the browser form is opened, it uses much memory (which is normal because of the site it browses). however, after the browser form is closed, the memory is not released.
In the browser form, when it is closing, the webbrowser is disposed and dereferenced. and no other part uses much memory in the form. GC is called too. what else should I do to release all memory the browser form uses?
now, it is like once the browser form is opened once, the memory usage never goes down even the form is closed.
On the back of a Windows Form, I get a window DC, create a Graphics object with Graphics.FromHdc, and then dispose the Graphics object before releasing the DC.
Private Declare Function GetWindowDC Lib "user32.dll" (ByVal hwnd As IntPtr) As IntPtr Private Declare Function ReleaseDC Lib "user32.dll" (ByVal hwnd As IntPtr, ByVal hdc As IntPtr) As Integer Dim hdc As IntPtr = GetWindowDC(Me.Handle)
[code]....
Why did they do it this way?Should the DC be released before or after Graphics.Dispose?It is possible that the wrong order can cause resource leaks or memory corruption?
This is just a test app I'm using as a training tool.It connects to a MS Access 2007 db.It gives me no error when I run it from the IDE but when I run the exe from the in elease it gives me this error,Failed to enable constraints.One or more rows contain values violating non-null, unique, or foreign-key constraints.I've found the relation thats causing this but, the data in the tables seems to be fine.No missing Primary keys, no duplicate primary keys, there no extra foreign keys.
I have a main window in my project, and numerous other child widows inside the main.I have noticed that. When I open the main window occupies 1500K of memory, when open one child window then adds in occupied memory 6000K.When I open the second window doing the same. When I close the two child windows the occupied memory is not released.So What I want is to release the occupied memory when ever I close child windows.How I can do that? with some code example in vb.net if it is possible.This problem often sawing in the computers on the Local NET not in my computer (developer computer which has the SQL server on it).
I made a .exe file of my project (in vb2008 express ed.) and it was all working and then I copied the release file out of my project and an error came up (something about UNC share) and i realized the path was wrong, so when I tried to delete the Release file (currently on my desktop) a pop up message says you need to be administrator to delete this file so I press continue (as I am the administrator) and another message comes up saying "You need permission to do this" "Try Again?", when I click "Try Again" the same message comes up. I know this isn't directly involved with VB, which leads me to my second issue:
How can I create a file that is external from VB yet it still works? In my code there is a path that connects it to SQL is it perhaps something to do with that?
I have one global generic exception handler(catch ex as Exception) for all unhandled exceptions from application.But in debug mode(app runs from VS) I don`t want that exceptions go to this global handler.Better for me is when VS stops app on place when exception occurs.
I am writing my first vb.net program that displays a .pdf file in a webbrowser control. I have setup a routine that moves the file to a different folder. The problem is I get the following error: "The process cannot access the file because it is being used by another process." Is there a way to release the file from the webbrowser so that I can move the file.
I'm opening a file called tempImage.jpg and showing it on a form in a PictureBox. I then click a button called Clear and the file is removed from the PictureBox using PictureBox2.Image = Nothing, however I'm unable to delete the file as it is locked open. How can I release it so I can delete it? I'm using VB.NET and a forms app.
I am confused about the folders that setup creates. What are Debug, Relese and Bin folders and what folder I need to give to my user while distributing the application.
I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I've released the code as a Google Code project. It's easy for a developer to get the source but I'd like to make it easy to install too.
What I did was make a release build then zip up what it created, this included a setup.exe. There was also an option to "publish" my project which looks like it can enable update checks and other stuff.
I want to create a .txt and then run a batch file which runs a .pyc which uses this file as a parameter. When I do this, I get a message that says the python program was unable to access the file. However, if I break after creating the .txt, then manually open, save, and close it (note: open close only doesn't work), and then continue running my code, it works fine. I think that my program still has control of the text file when the python program tries to access it, however I don't know how to release control.
'array input is system.arraylist of all words that I want to have in the grammar Dim fso As FileSystemObject fso = CType(CreateObject("Scripting.FileSystemObject"), FileSystemObject)