Programming :: C# ; Can't Stop Application Properly?

Jun 8, 2011

I'm developping a C# app in Windows using VS2010. It has one form and communicates as a client with a server.A receive thread displays incoming data while buttons and a timer send data. All workingThe form has a button that calls the below method to disconnect from the server.

Code:
public bool disconnect()
{

[code]...

View 2 Replies


ADVERTISEMENT

Ubuntu :: Updates Have Caused System To Stop Booting Properly?

Feb 9, 2011

Scaleo Pentium 4 system with several HDDs 3Gb RAMUBUNTU 8.04 (I think) inside a 50Gb partition (J:)Operating dual boot with Windows XP all OK until ......sanctioning the updates. Now Ubuntu will not complete a boot up.Studio Starts to scroll its name then screen goes back to A/numemeric reports and hangs for time-outs which never resolve. Power - down only way to exitExample of screen report at point of stopping:-

Starting hardware abstraction layer hold
104.628464] ata3.00 revalidation failed (errorno -5)
{DELAY FOR TIME-OUT} THEN:

[code].....

View 1 Replies View Related

Fedora :: Gpk-application 2.27.2 Is Not Working Properly?

Oct 23, 2009

I was just trying to install some packages at the gpk-application 2.27.2, but they are not compatible. For some reason I can't install anyting. I have Fedora Leonidas. In another forum they told me that my package installer is not the proper for this version

View 1 Replies View Related

Ubuntu :: Bin Application Failed To Start Properly

Nov 27, 2010

I accidentally deleted my bin just after booting up when the bin application failed to start properly. I can still send items to trash (right clicking and select from drop down menu) but I cannot restore them, see the bin icon or drag items to the bin area. It is quite annoying and I would be very grateful for comprehensive instructions on how to restore the bin to full operational functionality.

View 2 Replies View Related

Ubuntu :: Stop Application When Logging Off?

May 14, 2011

I used System->Preferences->Startup Applications to start up a shell script (application) when I login. How do I stop this application when I log out?

I've tried creating a ~/.logout file, where I determine the PID of the application I want killed (so that I can kill it), however it would appear that this file is never referenced when I log out of my Gnome session.

P.S. I'm using Ubuntu 10.10 (or whatever the last release of 2010 is designated as).

View 2 Replies View Related

Ubuntu :: Can't Find Application Manager To Stop ?

Jun 27, 2010

Using Jaunty and trying to install a 56k modem driver with gdebi but when I go to install it tells me I have to close all other application managers. I cannot find any other application managers running in system monitor. Synaptic and update manager are both off at this point.

I'm in a dual boot with xp. Something tells me I should have bought that USR modem with the native Linux driver rather than the cheaper Aopen unit

I will be upgrading to Lucid in the coming weeks but would like to resolve this beforehand if possible.

View 9 Replies View Related

OpenSUSE :: Application Couldn't Display Language Other Than Chinese Properly?

Apr 3, 2010

I've choice English as "primary language" in language configuration in Yast, and have also installed Chinese as secondary language.In most programs Chinese displays normally, like Evolution, Firefox, Dolphin, but in VLC media player and some other applications, Chinese couldn't be displayed properly.

View 8 Replies View Related

Ubuntu :: Stop An Application Autostarting In Gnome And Xfce4?

Jan 16, 2010

It seems that the two DEs read from the same damned autostart file as no matter how much I edit the start up menus for each the applications I want to autostart in Gnome but not in Xfce4 just ignore me and bloody well autostart in Xfce4 anyway.

View 4 Replies View Related

Programming :: Threads Not Getting Arguments Properly

Mar 26, 2011

I wrote a C program using Pthreads to compute the product of 2 matrices. Each element in the product matrix is computed in a separate thread. Eg: Thread (i,j) computes the element C[i][j] of the matrix C, where C=A*B. A is m*n, B is n*p, C is m*p. m,n,p are given as command-line arguments. A and B are initialized to random values from 1 to 10, while all elements of C are initialized to -1.But some threads do not get their arguments (i,j) correctly. So some elements C[i][j] still remain as -1, even after the program is over. My OS is Ubuntu 10.10 (Maverick Meerkat) 32-bit.I ran the program on another computer and it worked correctly. Is it due to a problem in the Pthreads library in my OS? Please help me. I have attached the source code.

View 3 Replies View Related

Programming :: Frameset Target Not Working Properly

Feb 19, 2011

I have a webpage in html that uses <frameset> tag. One of the frames is a Table of Contents (toc.htm) that lists a series of images. The other frame is called 'canvas.htm'. My framset is laid out as follows:

<frameset rows="20%, 80%">
<frame src="./banner_sp.htm" ></frame>
<frameset cols="15, 85">
<frame name="toc" src="./toc.htm" ></frame>
[Code]....

The frameset is created properly and I can load the images manually (i.e. I can access the images from my browser and/or image editing tool). The problem comes when I attempt to access the images from the toc.htm frame. Instead of opening the image in the canvas.htm frame, a new window is displayed in my browser, instead of the image being displayed in the target window (canvas.htm). This happens on all of my browsers (firefox, safari, IE7/8 and Opera) on Windows, debian-linux and OS X 10.5/10.6.

If I change my src attribute (in the canvas frame) to toc.htm, I see the Table of Contents (toc.htm) displayed side-by-side until I click on the first drawing in the list. At this point, the frame 'behaves' half-arsed the way I want it to. I have searched on google till I am blue(er) in the face with no luck.

View 3 Replies View Related

Programming :: Garbage After Exactly Eight Properly Printed Characters?

Jul 21, 2010

The code below prints garbage if I use puts() but it is fine if I use printf() instead (see sample of output at the bottom of this post). The odd thing is that the mess always starts after exactly eight properly printed characters. That sort of regularity can't be a coincidence, can it? It almost looks like an encoding issue (I'm using UTF-8) but if it really is, then I don't understand why the printf() is unaffected.

Code:
#include <stdio.h>
#include <string.h>
const char *nChars (const char *, int);
int main (int argc, char * argv[]){
char * name ="Count Dracula++";
int len = strlen(name);
if (argv[1] == 0) argv[1]="printf";
printf("--->%d characters", len); .....

View 9 Replies View Related

Programming :: Simple C# Using Mono Not Working Properly?

May 13, 2010

I am creating a simple program using C# to print the contents of the todo.txt file once it has run. Problem is when I run the program, I get this warning.

PHP Code:

[code]....

View 12 Replies View Related

Programming :: How To Get Zenity Progress Bar Working Properly

Apr 14, 2011

I am busy writing this script to get a pixel count of a large batch of images in a directory for a research project. To do this I'm using a loop to get all the images in the directory. To make the whole procedure more user friendly for some colleagues I decided to use zenity, something I haven't yet really worked with. As not to make sure that the users don't have to watch to this blank screen during the actual processing of the images I'm trying to get the zenity progress bar working. So far the progress bar comes up but instead of changing over time it stays "empty" till all the images are processed and then becomes 100% when all images are done. What servers my needs for now, but since I am trying to learn more about zenity I was wondering how I could change the script to get the progress bar properly working? Below is the piece of script I am talking about.

Code:
cd $input #goto path of image directory
(for a in *jpg *JPG *jpeg *JPEG; do
if [ -f "$a" ]; then #was it a image file
b="$a" #set b to $a
convert -resize 1000x1000! ${b} -depth 1 -format %c histogram:info:$b.txt #get pixelcount and write to .txt file
fi
done) | zenity --progress

View 2 Replies View Related

Programming :: Stop Semaphores In C?

Feb 26, 2011

i'm writting a program, that creates semaphores and shared memory. It asks from the user to give anything to write in the shared memory. Now, i want this program to do this,not only once, but repeat, and stop as soon as the user gives the word "quit". i added a while loop, but i don't know how to stop the program.

View 13 Replies View Related

Programming :: Function Successfully Called But It Did Not Run Device Properly?

Jan 6, 2010

I have our own C written program code which is communicating with a third party C++ written program code to run a moving device. We have successfully communicated with the third party code with wrapper functions. (Thanks to member in LQ that helped me solved this.)Now, we tried to run some functions to move the device. I think it is better for me to attach the related code first. pro.c (The source code we used to run the device)

Code:
#include<stdio.h>
#include "wrapper.h"

[code]....

View 7 Replies View Related

Programming :: How To Properly Clean Up On Asynchronous Or Sudden Shutdown

Jun 6, 2010

I have an user space application that performs file I/O operations, when a SIGKILL is captured, some routines are done first to ensure that all I/O operations are completed before rebooting the application or system. My question is, this won't work if the power button is pressed or the power supply is disconnected, so there can be incomplete I/O operation or corrupted data written into the file, so is there a way to prevent data corruption or at least complete any ongoing operation when this scenario happens? Assuming there is at most 1 second before the power really went out, can I/O be still completed?' I'm running the application on a busybox 2.6.14 kernel on an embedded system board.

View 1 Replies View Related

Programming :: UTF-8 Or Locales - Cannot Get Html Files On Pc To Render Properly

Jun 10, 2011

I cannot get some html files on my pc to render properly, Epiphany and Iceweasel show some non-latin characters as garbage but shows others of the same language correctly although Gedit shows the same files, with or without the html code, correctly. I have all the locales installed. Can someone point me to a solution? I am misleading you when I say "garbage", it is always a pair of question marks.

View 5 Replies View Related

Programming :: File Size Not Properly Checked In A Tcsh Script.

May 7, 2011

The check on the size of a file I perform in a tcsh script does not work. The size of my file is the following :

ls -l File.gpg
-rw-r--r-- 1 xuo users 3354637392 2011-05-07 15:31 File.gpg

The script is the following :

#!/bin/tcsh -f
set listOfEncryptFiles = `ls *.gpg`
foreach file ($listOfEncryptFiles)
set fileSize = `stat -c %s $file`
echo $fileSize

[Code]....

View 6 Replies View Related

Programming :: Double-quotes Do Not Escape Properly (bash=python)?

May 2, 2010

I wrote the Automatik widget (you can find it at :http://kde-look.org/content/show.php...&PHPSESSID=caeTo improve it, I would like to add this one-line script into a text sensor :

top -b -n 1 | head -12 | tail -6 | sed '/top/d' | awk '{ printf "%-12.12s %-4s %-4s %-3s
" , $12,$9,$10,$2}'

[code]...

View 3 Replies View Related

Programming :: Ptrace System Command Not Working Properly In X86 Platform

Apr 20, 2011

basically in the child process iam just calling the ptrace(PTRACE_TRACEME, 0, NULL, NULL) system call but if add this stsyem call rest of the code not working properly. i found the reason basically what happening is when we have ptrace() system call its printing the same variable 3 times i.e its not executing it 3 times but just it is printing 3 times .iam just wondering how it could be possible.

View 1 Replies View Related

Programming :: Stop User From Invoking Own Signal?

Apr 27, 2011

I have a signal handler in my tool, which is registered and used between some particular interval (i am using timer). Now this signal handler should NOT allow any other handler to be registered or invoked after this handler is once registered. Is there any way to accomplish this?

[code]...

View 6 Replies View Related

Programming :: How To Start/stop Squid Service Using PHP

Oct 21, 2009

Im using PHP and Sun Solaris to do something for Squid Proxy Server. im using......

- LAMP / SAMP
- Linux / Solaris 10
- Squid Server
- PHP

actually i need to know that someone knows about how to start/stop Squid Service using PHP code.

View 2 Replies View Related

Programming :: Socket Server Using Pthread Doesn't Wait For Accept() Properly?

Apr 19, 2010

I'm building a simple(?) socket server using threads to serve up a few requests. The spec is such that I have to listen to three ports at once, so I decided to use pthread to create three separate threads that would wait for connections, then spawn new threads to handle them.

The problem is that when I do this, for some reason the program never enters the wait loop and instead terminates (All three threads did get created since the messages get printed properly.) It gets to the line which prints "???", but not the line after the accept() call.I don't see an open port when I check for one either so I'm 99% sure they're terminating.Basically I have a main() method which has three calls to pthread_create, which should result in three threads being run that all wait for connections (listenOnPort). After each thread creation I print some info to make sure it's actually being created.

By the way, when I just run listenOnPortwithout threading, the server appears to enter the loop correctly and seems to be waiting for requests. It's only when I run the functions as threads that the problem seems to happen.The source is attached below. Any help will be appreciated. Much of the code is borrowed from a website (I can't post it because I am new here.) You need not worry about the handler_ methods because those are just methods that are run by the threads themselves.

Also--the original source was in C and I changed it to C++. Should I just use C?
server.h Code: /*
* server.h

[code]....

View 1 Replies View Related

Programming :: Isatty - Terminal Emulators Don't Render Right To Left Languages Properly

Oct 13, 2010

I'm new to Linux and these forums, but programmed in C++ on other systems. I discovered several Linux terminal emulators don't render Right to Left languages properly and so as an exercise I writing my own. It based on GtkTextView widget. Basically is working, but the shell won't issue prompts because it doesn't think my terminal emulator is actually a terminal (isatty returns false)

View 3 Replies View Related

Debian Programming :: Script Doesn't Stop And Just Hangs

May 16, 2014

The script below doesn't stop sickbeard, and just hangs. I really can't figure out why.

#!/bin/sh
### BEGIN INIT INFO
# Provides: SickBeard
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6

[Code] ...

View 1 Replies View Related

Programming :: Perl - Stop Range Search At End Of An Array?

Dec 7, 2010

I have data that looks similar to this -

Quote:

John Smith (Address)
123 Main St
Unit 1

[code].....

So I need everything between each name, but I am not guaranteed that each time I match a name that I will have the same amount of lines, so I do a range pattern search line this to get all lines, no matter if there is 5 or 10 or 15. I simply do a loop that goes through the whole array until I hit the match, and this is my search pattern.

Code:

if ($LINE =~ /^s+$SELECTED_NAME/ ... $LINE =~ /(Address)/) {
push @ADDRESS_INFO, $LINE;
}

This works perfectly... until I hit the end and it doesn't get its final pattern match because it's at the end and there is no next entry with a (Address) line. So as a 'hack', I ended up inserting a final scalar at the end of the array that just says (Address) so it knows it's at the end. Ideally though, I'd like to do an "or" statement that says search for Address || return true if I hit the end of the array. How would I match on "End Of Array" essentially?

View 1 Replies View Related

Programming :: Stop Reading Process Without Be Hanged At The Code In Python?

Dec 11, 2010

I have a Python program looks like this one :

Code: import os
import time
process = os.popen("top").readlines()

[code]...

View 2 Replies View Related

Programming :: Bash Step Incremental Loop To Stop On Each Increment?

Jul 17, 2011

How do I get this loop to stop on each increment? This script does work but I would like it to stop at each increment, remember what the value of $n is, then continue until it gets to 7. I have worked so hard on this. My brain is hurting now.

[Code]...

View 2 Replies View Related

Fedora :: Application For Programming AVR?

Sep 29, 2010

I want to ask whether there is an application to program the AVR on Linux. if there is what the name of his application? and where I can get it

besides, I also want to install the supporting applications to make PCBs, in windows I used mangunakan Altium.

if for linux what is the name of his application?

View 1 Replies View Related

Programming :: Make A Script That Will Check Service/s Status Whether Running Or Stop?

Sep 6, 2010

how to make a script that will check service/s status whether running or stop and also will run stop services?

View 9 Replies View Related







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