Service Application Causing Server Crash?

Aug 31, 2010

I created a windows application service that runs every 20 seconds to collect data from avaya cms and then dump it into a database. I did this using a timer. Since I had to have access to the clipboard to get the data and parse it, I had to be in STA. Unfortunately,just putting the STA before the Main() (or any other sub) did not keep the service in single thread mode. So I had to create a new thread and join it like so:

Public Class CMS
Protected Overrides Sub OnStart(ByVal args() As String)
Timer1.Enabled = True
Timer1.Start()

[code]....

View 1 Replies


ADVERTISEMENT

Win32 EM_GETTEXTEX Causing The Application To Crash?

Feb 28, 2012

Well this question is related to use of Win32 API. I am trying to get text of a RichTextBox which is located in one of my text application. I am trying to use EM_GETTEXTEX message to collect the data.

[Code]...

View 7 Replies

Missing Components Causing Crash

May 31, 2009

I am running into problems with my compiled .exe on other machines. On some computers it works, on others it doesn't (all using Windows XP with the .NET framework installed). When I run the .exe on some computers it crashes right away and hits the 'Send error report' dialog. On others it runs just fine. I'm pretty sure this has to do with missing components, but how can I fix it so it works for all computers? How do I find out which components are missing?

View 29 Replies

VS 2005 Counter Causing Program To Crash?

Mar 31, 2010

I'm not sure what I am doing wrong with counters using a delay but it keeps causing my program to crash. I am trying to use a try/catch for a IO exception involving filename already existing. I have a stored procedure that deletes the file from the directory but if my VB code tries to put the same file there it is supposed to encounter my try/catch and run the counter for a pause time until the file is deleted. Well each time it reaches the counter through debugging or not my main program (windows form) just hangs up and becomes unresponsive. I have tried waiting and stepping through/over the try catch but it still remains locked up.

[Code]...

View 3 Replies

Web Service On Web Server For Local Application Advice?

May 15, 2009

i am looking into web services to be used for a windows forms application that i want to connect to my website and return data from my database. One thing i am concerned about is security. I have only played with web service a little bit but it seems to allow direct access to it by url and then run the service, showing the results in the browser. i guess i could set it up to accept a password in the code. i guess really if i have to pass in the query criteria to the sql from the application then showing the records in a browser should not be a problem. in my web application for the site i can keep all my web services in the app_data folder for no browser access.

i just need some advice in this area. goods, bads, other options if better. i don't have a full grasp on working this way from a client side windows application.

View 9 Replies

.net - WCF Service Hosted In A Managed Windows Service Connect Using A WCF Service Application

Jul 14, 2011

i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:

Warning: Type library exporter encountered a type that derives from a
generic class and is not marked as
[ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be
exposed for such types. Consider marking the type with
[ClassInterface(ClassInterfaceType.None)] and exposing an explicit
interface as the default interface to COM using the
ComDefaultInterface attribute.

It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.

View 1 Replies

Application.DoEvents() Function Halt And Crash Application In Windows Vista

Jul 18, 2011

i made an application for serial communication. for this application i need to set delay time. during this delay time i m doing some other task. So for those task i need to take back control from delay function, for this purpose i am unsing Doevents() function.Its work fine On other OS (XP, Windows7 32/64-bit). But Application.DoEvents() function halt and crash in windows vista.

Private Sub TimeDelay(ByVal DT As Integer)
Dim StartTick As Integer
StartTick = Environment.TickCount()

[Code].....

View 4 Replies

Making Program To Watch For Server Crash?

Jun 22, 2010

i have been trying to make a program that should restart my server if it crashes. Just some few problems... it won't work.[code]....My problem is that when it notices the program runs, it won't do the process again, and just stop watching for the server crash.

View 2 Replies

Multithread Chat Server Side Crash

May 18, 2011

The server connects, the clients connect, one client sends a message to the server, and the server broadcasts it to the other clients. But what I want to do now is to also have the server communicate with the clients. But when I click on the server form, it freezes, and I cant do nothing.

I think this is because of me not creating a thread for the communication(I saw this on another forum), but I dont know how to do that. I copied basically all the chat program code from a site, and I dont know much of sockets and what not.

View 8 Replies

Multithread Chat Server Side Crash?

May 18, 2011

i'm doing a chat for a project, and it works like this. The server connects, the clients connect, one client sends a message to the server, and the server broadcasts it to the other clients. But what I want to do now is to also have the server communicate with the clients. But when I click on the server form, it freezes, and I cant do nothing. I think this is because of me not creating a thread for the communication(I saw this on another forum), but I dont know how to do that. I copied basically all the chat program code from a site, and I dont know much of sockets and what not.

View 2 Replies

VS 2008 - Properly Closing TCPClient So Server Does Not Crash

Jan 27, 2011

I have a simple tcpclient/server messenger running. Everything works great, except for when a client exits the software. When someone exits, is crashes the server with various exceptions and the server has to be restarted, as well as the clients. What I am looking for is a way to properly "log out" a client BUT leave any other connected client on so that is no break in the chat. Then the person that logged out or a new person can join back in whenever they choose.

CLIENT
''CHAT SERVICE
Dim clientSocket As New System.Net.Sockets.TcpClient()
Dim serverStream As NetworkStream
Dim readData As String
Dim infiniteCounter As Integer
[Code] .....

View 1 Replies

Emails Going To Recepients Outside The Exchange Server Domain Crash The Program?

Mar 17, 2011

I've written a program that writes and sends spreadsheet attachments to our customers. Because our customers are outside the domain of the Ex. Server when it gets to the smtp.Send(oMsg) statement (see below)the program crashes.I can use a gmail account without incident but that's less than perfect.

Private
Sub Send_EmailMessageExchange(ByVal
_from As[code]......

View 3 Replies

Application Crash On Exit?

Aug 5, 2011

I have recently implemented to following code on a good deal of my forms.

Public Overrides Function InitializeLifetimeService() As Object
Return Nothing
End Function

It has worked great to solve some of my odd application hangs when the application has been running > 1 week.However, when the user closes the program I now get an Application Crash screen.how to stop this? how to put it back to "normal" with a global variable?

Public Overrides Function InitializeLifetimeService() As Object
if readytoExit then
' Return... not nothing?[code]......

View 1 Replies

Crash - .net Application Only Works On 64-bit PC's?

Mar 29, 2011

I have had afew people test my application and all of the 32-bit users are telling me it is not working.

Problem signature: Problem Event Name:
CLR20r3 Problem Signature 02: 1.0.0.0
Problem Signature 03: 4d9235a5 Problem

[code]....

View 2 Replies

.NET Application Crash With No Debug Info?

Nov 9, 2010

I have a backup program that is currently running in our Corporate Environment on about 70 machines. A mixture of Laptops, Desktops and Windows (xp-32, vista-32, vista-64, 7-32-7-64) with no problems.

There is one exception, and it's the reason I'm posting here for assistance.On one machine that is a Dell Latitude running Windows 7 64 bit with .Net 4 Framework installed the console application will crash immediately before it starts Sub Main. It simply give the generic windows error "A problem caused the program to stop working correctly." with no option to see debug info.

[Code]...

View 4 Replies

Application Does Not Crash On Runtime Errors

Mar 31, 2012

I've got quite a big application and I've just started noticing that not all runtime errors cause an error.

for example if I call a function that executes an SQL query and the query string uses invalid syntax or refers to a field that doesn't exist then that would normally cause an error at runtime. But it doesn't - as soon as it hits the error the function simply returns to the caller.

If I enclose the code in a try/catch then the error is trapped but, while developing, I just want a good old runtime error but not getting one.

View 2 Replies

Catching Application Crash Events

May 9, 2012

I made a application in VB.Net. But some users face crash upon startup. That is "A problem caused this program from working correctly" with just one button "Close the program". Since there are lot of things happening when the app loads

View 1 Replies

TCP Data Arrival Function - No Server Response The Program Starts To Crash And Doesn't Work

Dec 11, 2009

Im using TCP cliente to connect and receive data from my server. To read received data im using this code:

[Code]...

It works fine when server response is detected but when there is no connection or there is no server respone the program starts to crash and doesn't work, so i have to break the debuggind process.

View 2 Replies

Application.doevents() Causing Some Sort Of Overlap?

Nov 9, 2009

I'm trying to automate the process of logging into twitterfeed.com, and filling in the information (the feed url and twitter username are pulled from textboxes). I had it mostly working the other day, even if it is a bit sloppy (the only way I could get one button to click is to send 50-some tabs). However, lately it seems to enter in a sort of loop. When I pause the program, Visual Studio indicates that it is the Application.DoEvents in the Private Sub "wait" that is still running even after it should be.

Public Class Form1
Private feed, username, temp As String
' Code stolen off of a website as an alternative to sleeping, or trying to do a timer + while combo like I had been doing

[Code].....

View 1 Replies

Delete The Application Files Folder Without Causing The App Not To Run?

Jun 21, 2011

im coding in vb 2008 express, just wondering if its possible to delete the application files folder without causing the app not to run? seems it stores every previous version i have created. is it necessary for them to be there? im using click once to publish.

View 1 Replies

VS 2008 Application Crash(flash.ocx With Webbrowser)?

Jun 26, 2011

I have an application which has 2 WebBrowser controls inside(both with script errors suppressed if thal). The application involves navigating to the same url every 3-4 seconds roughly(when the browser is ready).After a while it will crash and tell me flash.ocx is missing and is not included with this version of windows(w7 and vista). I troubleshoot the problem and tells me to update flash which does no fix the problem. This crash only happens when I run the application outside of the IDE btw and I get no errors in the IDE.

View 1 Replies

VS 2008 Logout User On Application Crash

Mar 15, 2010

I have developed a server-client application. The program has multiple users each uniquely login in with their credentials to the system. The problem arises when the application crashes, pc shuts/restarts, the user then cannot log in as it is showing is still logged in. This is true because the last code from the program, which logs out the users , is not run because the program crashed or the pc , that is intalled on, lost power. Is there a way to go around this problem. I cannot deploy the application until this is fixed. I have placed on application exit and on last form`s closing event to logout users. It still keeps them logged in in some cases as I already stated previously.

View 15 Replies

Connection Leaking Causing 'System.Data.SqlClient.SqlException: Timeout Expired' Error In SQL Server?

May 19, 2010

My application requires a user to log in and allows them to edit a list of things. However, it seems that if the same user always logs in and out and edits the list, this user will run into a "System.Data.SqlClient.SqlException: Timeout expired." error. I've read a comment about it possibly caused by uncommitted transactions. And I do have one going in the application.

[Code]...

View 4 Replies

Game Programming :: Loop Causing Application To Freeze?

Mar 15, 2009

I'm having some wierd problems with my Looping. I'm was using a thread to start a looping routine to sample the keyboard for pressed keys. The loop worked fine when I made a call to it from the thread in my form load routine. However when I just made a call to the samplekeys routine without using the thread my application will freeze and it won't load.I'm making the call in the form load routine. Private KeyThread As NewThreading.Thread(AddressOf SampleKeys)hen start the thread in the form loading procedure , but if I just make a direct call to the samplekey routine without using a thread my application freezes.Here is the the thread don't think there is a problem with it.

Public Sub SampleKeys()
Dim N As Integer
N = System.Environment.TickCount

[code].....

View 1 Replies

.NET Application Receiving 503 Service Unavailable Error When Calling Web Service?

Apr 28, 2009

This is a bit of unusual problem that I'm experiencing, but recently one of the users of a production application started reporting errors in the system. These were traced to a 503 Service Unavailable error when making a call to a web service used by the application.

Now here's the odd part, only the one user is affected by this issue. Other users of the application have not reported any errors. When the user logged on to a different machine that worked for another user, they still received the error.

View 1 Replies

IDE :: Crash When Using Application That Include Shockwave Flash Objects?

Jan 31, 2010

making sure I have both AxInterop or whatever those 2 .dll files in the same area, i do.

View 1 Replies

Error Is "socket.exception" / Number Of Server's CRASH In On Day More Than 10 Time ?

May 26, 2009

i'm using socket programming in vb.net 2005 and make a Server/Client windows application and it used in the network to multi user chat server and havent error and it work , but one BUG in server app : the Server app. work currently until the number of clients more than 30 and then it crashed . and error is "socket.exception" . now tell me what to do ??? it's very very important to me because the number of server's CRASH in on day more than 10 time and i end it and then run again and it's not good for my job .

View 5 Replies

.net - Me.Close() Causing The Application To Throw A "has Stopped Working" Message?

Feb 16, 2011

I have to build an application using it in order to communicate with some software. Basically, I need to be able to call this exe and have it run to perform some tasks, then close itself down.I have the tasks running on page load but since I don't want the application to actually open, I use a Me.Close() to close it once it's finished the tasks. So, the whole thing works great (the tasks are even performed) except the Me.Close() causes a message to come up saying the application "has stopped working." Is it because I'm trying to close it while it's loading itself?I am forced to perform these tasks in VB, so please don't just say I should not be using VB.NET for this.

View 2 Replies

Event Type Clr20r3 P3 4a5c12c0 System.net.sockets.socket Exception And Application Crash On Some System While Running Well On Others

Aug 3, 2009

Event type clr20r3 p3 4a5c12c0 system.net.sockets.socket Exception and Application crash on some system. while running well on others. i go thorugh many forms and search a lot on google but not able to resolve the issue.

[Code]...

View 1 Replies

FormClosing And Application.Exit Is Causing The MessageBox To Ask If Want To Exit Twice

Jun 12, 2007

I'm having a bit of a problem getting my application to close properly. Basically I have one main form from which all other forms open. If a user tries to close that main form, I want to bring up a MessageBox asking if they want to exit the application.However, when I try to do that it asks the question twice. It seems that the Application.Exit() is triggering the FormClosing event again for some reason, but I don't know of another way to exit the application. BTW, the main form isn't the startup form so I can't use the option to close when the startup form closes.

View 9 Replies







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