Release Version Problems

G

Guest

Problem:
App works OK in debug both in VS.Net and build version.
Also OK as release version in VS.net

Not working as release version build.

Gets to this line of code: (private func called from sub Main())
da.Fill(crms_ds_ParcelList, "rfaPRef")

then stops (does not hang) just stops...

Also one of the messages boxes in the try..catch...finally statement
I have included to trap prob in release version
Flashes up but to quick to see which one....

Any thoughts....
 
M

Miha Markic [MVP C#]

Hi,

You should implement some sort of logging (perhaps to a file) to see where
the problem is.
 
G

Guest

Thanks MM

Good thought... Will try

Miha Markic said:
Hi,

You should implement some sort of logging (perhaps to a file) to see where
the problem is.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

KeithO said:
Problem:
App works OK in debug both in VS.Net and build version.
Also OK as release version in VS.net

Not working as release version build.

Gets to this line of code: (private func called from sub Main())
da.Fill(crms_ds_ParcelList, "rfaPRef")

then stops (does not hang) just stops...

Also one of the messages boxes in the try..catch...finally statement
I have included to trap prob in release version
Flashes up but to quick to see which one....

Any thoughts....
 
G

Guest

Miha suggested using a log file...
This also bombed.
But got me thinking along another line...

After using JIT debug and a whole lot of frustration,
it turned out to be something unrelated to the line of code
initially indicated (surprise, surprise!)

The release version was working OK until this rollout...
I had made some code changes to the way the app
started (changes to splash screens etc).

This line of code unintentionally was left in Sub Main()
--->> dim f as new frmMain
.....after some initialiazation code....
this line of code starts the UI
--->> Application.Run(New frmMain)

This was handled OK in the IDE (debug or Release)
AND in the debug build....
But not in the Release Build....

After removing 'dim f as frmMain' all was OK...

Once again thanks MM...



KeithO said:
Thanks MM

Good thought... Will try

Miha Markic said:
Hi,

You should implement some sort of logging (perhaps to a file) to see where
the problem is.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

KeithO said:
Problem:
App works OK in debug both in VS.Net and build version.
Also OK as release version in VS.net

Not working as release version build.

Gets to this line of code: (private func called from sub Main())
da.Fill(crms_ds_ParcelList, "rfaPRef")

then stops (does not hang) just stops...

Also one of the messages boxes in the try..catch...finally statement
I have included to trap prob in release version
Flashes up but to quick to see which one....

Any thoughts....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top