Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2005

Tip: Looking for answers? Try searching our database.

.NET console Application fails to execute from CMD.EXE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
safox - 21 Jul 2005 17:27 GMT
I have vb.NET console application that I execute in batch from CDM.exe. When
submitted via a 3rd party tool, or by hand myself, the application will
sometimes return immediately with no error message just a command prompt. I
can then arrow up to get the same command and press enter and it may run the
second time.

My main routine starts with a try, the first command in the try is a
console.writeline, my traps log nothing, my console.writeline message does
not appear, the application appears to be 'stillborn'.

This effect is found in my test and prod environment but never in dev.

Please help a desperate man.

safox
Nick Malik [Microsoft] - 24 Jul 2005 20:40 GMT
First off, do you have the [STAThread] attribute in your initial class?  If
you created your app as a DLL and decided to make an EXE, or if you decided
to delete this attribute just to see what is going on, you may be running
into a problem synchronizing your thread with the I/O channels.

An interesting explanation is here
http://www.sellsbrothers.com/askthewonk/secure/default.aspx?content=whatdoesthes
tathreadattri.htm


If that doesn't help, I'm not sure where to look.

Signature

--- Nick Malik [Microsoft]
   MCSD, CFPS, Certified Scrummaster
   http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
  I do not answer questions on behalf of my employer.  I'm just a
programmer helping programmers.
--

>I have vb.NET console application that I execute in batch from CDM.exe.
>When
[quoted text clipped - 14 lines]
>
> safox

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.