Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 11th, 2005, 7:42 PM   #1
Silent
Newbie
 
Join Date: Nov 2005
Posts: 11
Rep Power: 0 Silent is on a distinguished road
VB O5 Program Running Problem..Think its .net framework

Hey all
I've made a prog in VB.Net and am having a weird issue running it, i think the problem could be to do with .Net Framework 2.0

The program, when run from a CD fails to initialze properly according to windows. This only happens on a Windows XP Fresh build, no .net framework 2.0

I think its because the machine doesnt have .net framework 2.0, so, is there anyway of making the program compatible with machines that don't have this?

Any help / Suggestions welcome. Thanks alot
Silent is offline   Reply With Quote
Old Dec 11th, 2005, 11:01 PM   #2
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,010
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Silent
Hey all
I've made a prog in VB.Net and am having a weird issue running it, i think the problem could be to do with .Net Framework 2.0

The program, when run from a CD fails to initialze properly according to windows. This only happens on a Windows XP Fresh build, no .net framework 2.0

I think its because the machine doesnt have .net framework 2.0, so, is there anyway of making the program compatible with machines that don't have this?

Any help / Suggestions welcome. Thanks alot
You can go through your program, and see what classes and methods it's using, and check the documentation to see what the required framework version is for those functions. If it's 2.0, post the offending sub/function/code snippet, along with its intended purpose, and we can probably help you rewrite it.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Dec 12th, 2005, 6:05 PM   #3
Silent
Newbie
 
Join Date: Nov 2005
Posts: 11
Rep Power: 0 Silent is on a distinguished road
How do i find out which pieces of code are causing the problem?
Silent is offline   Reply With Quote
Old Dec 15th, 2005, 4:43 AM   #4
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,010
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Silent
How do i find out which pieces of code are causing the problem?
You could learn to use the debugger.

Failing that, you can check the call stack trace it pops up when your program gets an exception. First you get a little dialog box like this:



Click 'Details', and you get the call stack trace:



Scroll around in that little window until you find the offending line, then check the docs to see if the method/whatever you're using is supported, and how it is to be used.

Common exceptions are caused by a) using a null reference (ie, when an object is 'Nothing' in VB.NET syntax), trying to write to some read-only thing (as any files or databases on a CD will be, by definition), and c) trying to cast one type to another before verifying you can (ie, using CInt(text) when text contains "Hello").

Sometimes the null reference exceptions are a bit tricky to trace, if your code doesn't have the proper checks. Make sure that if a function, whether you wrote it or not, can return such a reference that this is tested for. Don't blindly try to use the object; passing it off to other functions will often cause an exception, and calling a method on it always will.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:41 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC