473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Strange Application exit

I have built a query tool that lists a table structure in a list view along with a rich text box that I can run an adhoc query in. Inside the VS2003, it works fine. When I launch the same exe from a shortcut on XP pro, it connects, then looks like it's going to load the listview and then exits. There is no exception or error thrown. Fine, so I added some msg boxes trying to figure out where it's bombing. I get the message "before Read" and then nothing.

The 2 connections hQuest, hQuest2 are regular connections to SqlBase and appear to be fine. What would cause it to run in development vs. not run from a shortcut? Would it be how I'm handling the readers? Would it be clearing the tv (that's the listview that I'm creating)? Basically rdr reads all the user created tables in from the database. Rdr2 then fetches the columns for that particular table and then adds the whole mess as a node.

Thanks in advance.
'This loads the listview..

Dim myCommand As New SQLBaseCommand("select name from sysadm.systables where name not like 'SYS%' ", hQuest)

Dim comFindColName As New SQLBaseCommand

Dim rdr2 As SQLBaseDataReader

Dim rdr As SQLBaseDataReader = myCommand.ExecuteReader

tv1.Nodes.Clear()

MsgBox("before read")

Do While rdr.Read

Dim tblnm As New TreeNode

'n.Text = rdr.GetString(0)

tblnm.Text = rdr.Item("name")

comFindColName.CommandText = "select name " & _

"from sysadm.syscolumns where tbname = '" & tblnm.Text & "' order by colno"

comFindColName.Connection = hQuest2

rdr2 = comFindColName.ExecuteReader

Do While rdr2.Read

Dim colmn As New TreeNode

colmn.Text = rdr2.Item("name")

tblnm.Nodes.Add(colmn)

Loop

tv1.Nodes.Add(tblnm)

rdr2.Close()

Loop

rdr.Close()

Jul 10 '06 #1
0 775

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Guinness Mann | last post by:
Pardon me if this is not the optimum newsgroup for this post, but it's the only .NET newsgroup I read and I'm certain someone here can help me. I have a C# program that checks for an error...
4
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
6
by: leonecla | last post by:
Hi everybody, I'm facing a very very strange problem with a very very simple C program... My goal should be to write to a binary file some numbers (integers), each one represented as a sequence...
4
by: Bob Day | last post by:
Using VS 2003, VB.net... I am confused about the Application.Exit method, where the help states "This method does not force the application to exit." Aside from the naming confusion, how do I...
15
by: Mike Fellows | last post by:
im running the code below when a new item is selected within a combobox the code runs fine but when it gets to me.close it crashes - it doesnt start the next form just crashes (its not debugabble)...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
11
by: VijaKhara | last post by:
Hi all, I just write a very simple codes in C and vthere is a very strange bug which I cannot figure out why. The first loop is for v, and the second for k. There is no relationship between v...
4
by: Chris | last post by:
Hi, I'm puzzled by some strange behavior when my Python/Tkinter application quits (on linux): the terminal from which I started Python is messed up. If start up python, then import the code...
1
by: =?Utf-8?B?VGFvZ2U=?= | last post by:
Hi All, When I use applcation.exit() in winForm application, the form closed, but the process is still going!! ( The debug process is still running if debug in VS IDE). Environment.Exit(0) works...
2
by: angryRotarian | last post by:
Im trying to write a MPI C program for a debian cluster that multiplies matricies. Ive written almost all of it, but cant seem to shake a strange problem. Here is the code: #include <stdio.h>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.