FileName As String - Application Installed Randomly Locks Up

Dec 23, 2010

I have a quite simple application that is having some random locks up. It's just a few text fields that the user fill it up, 3 sets of Radio buttons, one of them with flags to chose the language and click the PDF button. The application uses iTextsharp to load a PDf template, insert the text into it, depending on the language loads some extra text from a .xml file, and depending on the radio button removes the images from the PDF, closes the pdfstamper and uses [Code] to open the file with whatever PDF application the user have installed and closes itself.

Sounds simple, but after the application is installed in the machine (never in debugging mode) it randomly locks up the application. I tried re-publish the application commenting out the Start(filename) line and the thing stopped locking. And I double checked it, re-publish with the line again and it locked after just a few attempts. [Code]

View 1 Replies


ADVERTISEMENT

VS 2008 Scan A Long String And Return Any Values That Occur Between The Tags <FileName> And </FileName>?

Jul 1, 2009

Quick query...I'm trying to scan a long string and return any values that occur between the tags <FileName> and </FileName> I've got a bit of code here to use regular expressions to return the position of the occurunces of both substrings..Just wanted to find out if there is any way to scan for both substrings within one loop (as im currently doing 2, one for the first substring and one for the 2nd) so I can use something along these lines:

ringlist = Mid(XMLRESP, (startloc + 1), (endloc - 1))
MsgBox(ringlist)

to msg box the value between the substrings...either that or another approach to return the value between the 2 substrings (it can be of variable length)

Dim patternstart As String = "<FileName>"
Dim patternend As String = "</FileName>"
Dim matchesstart As MatchCollection = Regex.Matches(XMLRESP, patternstart)

[code].....

View 3 Replies

C# - Application Locks Up When It Should Get A Runtime Error During Debug?

Dec 18, 2009

I develop windows applications in VB.NET using Visual Studio 2008. Recently I reloaded my pc and moved from XP to Windows 7 64 bit. Now when I am debugging, when I should get a runtime error, the executable instead locks up when it should bring up the code with the line that it crashed on like you'd expect in debug.

This doesn't happen all the time, only when I get a runtime error in a separate assembly that is not in the assembly I'm debugging. It used to work fine, but now it locks up. If I run the executable outside of Visual Studio (without debug) I at least get a runtime error like you'd hope for. I don't even get that when debugging.

View 1 Replies

Application Locks Up When Running In Terminal Server Session?

Sep 23, 2010

I have a Windows Forms application created in VS2005 which runs fine on the user desktop but when running in Terminal Server session it frequently locks up when the remote desktop window is minimised and the user is working locally.There is plenty of RAM on the server so this is not an issue, the only solution so far has been to force the user session to log off on the Terminal Server and then reconnect.

View 14 Replies

Forms :: Experiencing Some Random Locks While The Application Is Running?

Oct 27, 2010

I'm have a quite big application which have 2 serial ports and access 1 DB (running on Background workers). I'm experiencing some random locks while the application is running and I started looking for something that could cause it. One of the obvious possibilities would be if I had in the GUI thread some While_End that would never return.I have one While_End in my GUI thread but IMHO it does not look like it would lock, so I want your opinion: Does the code below looks like will lock?? If 'yes', Why ?

[code]...

Does anyone can imagine a scenario where this While_End would not return ?

View 1 Replies

VS 2010 - Do/Until - Always Locks The Application So Can't Click On Anything Until The Loop Is Finished

Jul 19, 2011

I have a do until loop. But whenever my program get's to it, it always locks the application so I can't click on anything until the loop is finished. How do I fix this? I want to be able to stop the loop with a stop button.

View 11 Replies

Why Application Keeps Randomly Crashing

Apr 15, 2010

Is there a way how i can see why my application keeps randomly crashing?

View 9 Replies

Display String Randomly From Array

Jun 2, 2011

I have a form with one richtextbox and one button. The idea is that:
Form Load: data read from text file into arrayButton Click: random number generated, then used to select the string whose index number matches the random number generated

My StreamReader is working correctly and I can create random numbers with no problem, but I'm stuck on how I can use this random number to extract the corresponding string. I keep get the error saying QuoteObject reference not set to an instance of an object.

My code is below:
Imports System.IO
Public Class Form1
Dim questions(69) As String
Dim i As Integer
[Code] .....

View 6 Replies

VS 2008 Randomly Select 1 String

May 17, 2010

How do I randomly select 1 string from some Text? For example: Main text:

[Code]....

View 5 Replies

Shareware .net Application Packed Using Innosetup, Installed In Different Directories Creates 2 Different Set Of Application

Jul 16, 2010

I have created an shareware application using vb.net visual studio 2008 for windows desktop, and packaged it using innosetup 5.3.8. The problem is when i have installed the application in C:Program FilesApplication and it runs successfully(use trial period of the application), Im also able to install the application once again freshly with the same setup by installing in different directory.eg C:Program FilesApplication new . The application in C:Program FilesApplication new does not have any settings of the already installed one.

Where do i went wrong . Do i need to take care of this in my application(vb.net) or innosetup. How to take care of the already installed path in innosetup or carry the settings of already installed application to newly installed path by upgrading the older one.

I dont want to write any thing in registry because the application does not want any administrative permission requirements.If i install the application in same path it gets updated with the older settings being taken over to this new one and it works fine.

View 1 Replies

Unable To Install Or Run This Application. This Application Requires Microsoft Common Language Runtime 4.0.3 To Be Installed On Computer?

Jun 8, 2011

I have designed and published my small created app with WINDOWS FORMS using VB 2010 EXP on Windows 7. I can only install the app on the machine that I used to develop the app.I want to install the app on another computer but I cannot. I usually have error reports.

Example:Unable to install or run this application. This application requires Microsoft Common Language Runtime 4.0.3 to be installed on your computer.

what can I do to be able to install the app on a different computer which does not have .Net and does not have visual basic 2010 installed.

View 13 Replies

SAPI Text To Speech "locks Up" Application While Speaking A Message

May 20, 2010

I'm using VB 2010, and am trying to add a simple TTS function to my program. I'm able to create a voice object, and get it to speak (Voice.Speak("whatever") with no difficulty.

The problem I'm having is that while the "whatever" is actually being spoken, the program doesn't seem to respond to input. The input does show up once the audio is through, but I really need to be able to detect some input (say, a mouse or button click) during a message and respond immediately, perhaps even stopping the audio.

View 2 Replies

Getting Filename From A String?

Dec 8, 2009

I am getting a filename in a String and need to get the name from this. An example:

Dim file As String = "Hello.png"
'I need to get "Hello". One way of doing it is:
Dim name As String = file.Split(ChrW(46)).First()

The problem with this method is; What happens if the filename contains a .?

[Code]....

View 1 Replies

Publishing My Application - Where Exactly Does The Application Gets Installed On My System

Jan 9, 2012

I have recently created an application with Visual Basic.NET. I published my application and installed it. Now the question is that I need to know where exactly does the application gets installed on my system ?

View 6 Replies

Date String Format For Filename?

Apr 1, 2009

I am trying to make a filename something like this:

dim Test as string = "name_" + now.toshortdatestring() + ".pdf"

The datestring is like MM/DD/YYYY, which is a particularly bad filename (who want slashes in their file names??)Is there a way to format the date string differently (ie MM-DD-YYYY)?What I was trying to do is tag the file with a date so I could tell when the last time that file was generated, and also keep multiple copies around for archive purposes. Maybe there is a better way and then I dont even need this differently formatted string?

View 4 Replies

Remove The Filename And Extract Just The Path Of The OpenFileDialog.Filename Property?

Oct 17, 2010

How would I do that? Sample code is below that demonstrated that the file I opened contained the full path and file name.

I want to extract just the path and serialize that to the user.config file as a UserSetting value. Then next time the user opens the dialog box, it uses that saved path string to go immediately to the location previously used.

If openFileDialog1.ShowDialog() = DialogResult.OK Then
Properties.Settings.Default.persistConnectionType = openFileDialog1.FileName
Properties.Settings.Default.Save();

[Code].....

View 3 Replies

Check When Filename Contains A Portion Of A String In Program?

Jun 27, 2012

I have a userform in 2008 vb express edition. A part number is created from user input via a concat string. I want to then check if a certain portion of the part number exists in the existing file names in a directory. Below is a more detailed explanation.[code]...

View 2 Replies

Modifying String Containing Invalid NTFS Filename

May 6, 2009

I have a piece of code to debug. Because of unknown bugs it creates a dummy filename. I want to track all the pieces of code who fires that creates the dummy filename, so I can change the dummy file creation to a thrown exception. Since I the dummy filename is stored on a string, I plan to modify that string to contain an invalid NTFS filename, maybe containing invalid chars. Is there a reason to prefer some invalid chars over others? There are some predefined invalid NTFS filename destined to this purpose? (I may think of AUX , COM1 , LPT1 or PRN , but those names run the risk of start sending data to a port instead of throwing an exception).

View 1 Replies

Public Sub SaveExcelFile(ByVal FileName As String)?

Nov 22, 2011

Public Sub saveExcelFile(ByVal FileName As String)Dim Excel As Object

[Code]...

that is my code. everytime i open the saved file, it says that it has a different file type and asks me if i want to continue opening it and i click yes. the data inside the excel file is only the word "Success"

View 14 Replies

Get The FileName For The Proces.Start(FileName) Method?

May 27, 2009

I have a Listview on my form with different files. I can selet a file en open it with the proces start method. To open the file i use the OpenFileDialog method and select the filename. This work very good. With the code below.

My question is if there is a method to get the selected file without using the OpenFileDialog Box. So when i dubbelclick the selected file the proces will start with open the selected file. Something like:

proc.StartInfo.FileName = Me.SelectedCell.FileName
instead of proc.StartInfo.FileName = Me.OpenFileDialog1.FileName

PS) May be i can preduce the Filename using the OpenFileDialog method on the background.

Private Sub ListView1_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseDoubleClick
If Me.OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then

[Code]....

View 8 Replies

Transform An Address Like File:///d:filename.ext In A D:filename.ext

Jun 26, 2009

how do you transform an address like "file:///d:filename.ext" in "d:filename.ext"

without dirty string manipulation??

View 4 Replies

Getting Location Of Installed Application .net?

Apr 9, 2010

i published an application in vb.net. the user will be able to install the application anywhere they choose on the computer (or perhaps not anywhere they choose but where ever the default location is). how can i programmatically get the location where the user installed the application? another words i need the application to know where it is running from. how do i detect that?

View 6 Replies

Use An Not-installed Font In Vb Application?

Mar 8, 2012

how i can use an not-installed font in my vb application?

View 5 Replies

Detect If An Application Has Been Installed On A Windows PC In A App?

Jan 30, 2010

I know the default install path of the app and the name of the .exe file, but is there a way to see if it is actually installed? I've seen suggestions for checking registry entries, but I don't know if this app uses any or if if varies for different users on different pc's.

[Code]...

View 2 Replies

Find Path For Installed Application?

Apr 23, 2010

How I can find path for installed application from VB.net if i know the name of application exe file?

View 6 Replies

Get The Message Application Already Installed At Other Location?

Jun 15, 2009

I am trying to install a program but I get the message Application already installed at other location The application does not appear in the program manager to be uninstalled. I have tried publishing a later version but when I try to install it I get the same message. The click-once publisher generally includes an uninstall program with the applications. when Ive had this problem before it was fixed by republishing as a newer version.

View 1 Replies

Have MSAccess Installed In Order For A .NET Application To Use A .MDB?

Oct 15, 2009

Do I need to have MSAccess installed in order for a VB.NET application to use an .MDB?

View 10 Replies

.net - Make The Application For The Project (.wip) Is Installed"?

Apr 28, 2012

I have a very old plug-in software developed in Visual Basic quite years ago, now its getting time to modify the copyright info. At this point, the issue is now that I was not the author so I don't know anything about it.

I have updated the source files which includes a SLN, VBP, WIP, MSI and so on, then I tried to use VS2008 to open the SLN file and after Conversion it given me a message "The project for XXX.wip is not installed, please make sure the application for the project (.wip) is installed", Apparently this is not right version to get going on. Can everybody tell which VS version can proceed it? or any idea how I do this?

View 2 Replies

Find Installation Directory Of Other Application Installed?

Mar 16, 2011

I have started working on the module based application (plugin based architecture) and client want setup of module that can be run later and added automatically in main application. So, what I am thinking to apply in module setup project is to find the installation directory of main application and then paste dll of module in specific sub-directory.

Is it possible? Is there any other way to add feature in main application later using setup?

View 10 Replies

Get A List Of Installed Programs With Application Icons?

May 25, 2010

I need to get a list of installed program on local machine with application icons. Below is the code snippet that am using to get the list of installed program and installed directory path.[code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved