Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Installation / Documentation > App created on Windows7 broken when installed on WinXP?


Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2011, 06:20 PM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Super Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA
Posts: 6,294
Default App created on Windows7 broken when installed on WinXP?


I created a VB 2010 standard edition App on Windows 7 that behaves badly when installed on WinXP.

This same app works properly when installed on Windows 7.

On WinXP it runs and all functions (So far) work except one
A button click is suppose to launch a backgroundworker that queries a database and displays the data in a datagridview. I am using the background worker so that a progress bar can be shown.

On the button click the progress bar runs for a bit then stops and no data is displayed. It is like the background worker failed.

The odd thing is that a similar function launched with another button works fine.
Both run queries in the background worker.

Without errors I am at a loss.

Any suggestions?
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
  #2  
Old 07-01-2011, 02:32 AM
Schravendeel Schravendeel is offline
Newcomer
 
Join Date: Apr 2010
Posts: 19
Default

Can you try installing Visual studio 2010 on the xp computer and run the program through the debugger? Does that give you any errors? (Be sure to remove any Try-Catch blocks in your code)
Reply With Quote
  #3  
Old 07-01-2011, 08:09 AM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Super Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA
Posts: 6,294
Default

I have 2010 express on the XP machine but I do not think it will let me load the Window 7 VB project as it is the full version of VB.NET 2010 Standard Edition.

I only have one license for the latter.

Good idea about the try-Catch. I'll pursue that course for now.
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
  #4  
Old 07-01-2011, 08:22 AM
AtmaWeapon's Avatar
AtmaWeapon AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,505
Default

Make sure you aren't eating the exception (you're already on that.) Also make sure you're looking for the exception. When the BackgroundWorker finishes and raises the RunWorkerCompleted event, check the Error property of the RunWorkerCompletedEventArgs. If OnDoWork() failed with an exception, this property should contain the exception (unless you handled it in OnDoWork().)
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
  #5  
Old 07-01-2011, 11:03 AM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Super Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA
Posts: 6,294
Default

Thanks Atma, I added the check for the error property in completed this morning but haven't compiled and tested. Got carried away redesigning the whole query chain.
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
  #6  
Old 07-01-2011, 01:12 PM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Super Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA
Posts: 6,294
Default

I didn't trap an error with the code this morning so I re-designed and re-wrote the whole query chain of events. I was able to simplify it to something that made more sense.

The install now runs as it should.
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
Reply


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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->