473,406 Members | 2,894 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,406 software developers and data experts.

Problems in Windows Vista

We have an application developed for .NET 2.0 that has been working a
long time on Windows XP. However, when we put it on Vista, we get all
sorts of "Out of Memory" and "Access Violation" exceptions when trying
to open the program. I upgraded to Vista on my development machine,
and I get the same errors, only it shows up on different lines of code
every time, rather than particular places. I have no idea what's going
on. I have plenty of free memory. Sometimes, and here's the kicker, it
will open just fine and work for days on end, and then closing it and
reopening spawns all sorts of these issues.

Most of this is not my code, and it definitely has some design
problems that I'm attempting to resolve bit by bit, so it could never
well be the very structure of the program. It uses a lot of global
variables and static classes to do its work, so memory management has
to be poor anyway. But still, it works fine in XP, and horribly in
Vista, so I'm thinking there has to be a change in how the heap
operates or something to that effect.

Some things that are bad design that I'm currently in the process of
changing:
- Overuse of static classes and variables
- Using exceptions to pass messages to the caller
- Where tried and true design patterns would make sense, hundreds of
lines of spaghetti code is in its place
- Instead of modal forms, all functions are on controls that are late
bound to the main form, which changes context all the time.
- It was overall not written very well. I'm not the best by any means,
but this has been appalling to work inside.

I should also mention that it functions by calling a C dll for low-
level arithmetic. It seems to look ok from my end, by sending pointers
using the "ref" keyword, pre-allocating structures inside .NET before
the dll gets it, etc. However, interop is not my strong point, so the
problem could lie here I suppose.

Does anyone have some general ideas what could be causing such
behavior? Things I should look out for, ways Vista is different than
previous versions, etc.? So much for .NET guaranteeing compatibility;
it's not a Java killer for sure.
Dec 4 '07 #1
0 1220

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

Similar topics

40
by: Spiros Bousbouras | last post by:
Do you have an example of an implementation where sizeof(short int) does not divide sizeof(int) or sizeof(int) does not divide sizeof(long int) or sizeof(long int) does not divide sizeof(long long...
8
by: =?Utf-8?B?U3JpZGhhcg==?= | last post by:
Hi, I am having problems to run asp.net 1.1 on windows vista business operating system. When I try to create a new web application or try accessing an existing web application it is giving the...
3
by: Lloyd Sheen | last post by:
I need to add a login front end to an existing website. No big deal ???? VS 2005 / Vista / II7 / SQL Express Well I go into the security and add a welcome page and a login page. Real easy...
2
by: Wayne | last post by:
I'm experiencing the following intermittent problem with Access 2003 (Access 2000 file format) under Vista. Sometimes when I close a database by closing the database window I get the following...
3
by: =?Utf-8?B?aXJpcw==?= | last post by:
I have vista, home (cheapest) version and my internet connection intermitently cuts out, then mysteriously goes on again, sometimes after an hour, sometimes after several hours. sometimes this...
0
by: Wayne | last post by:
Does anyone know if Vista renders Access charts differently than Windows XP. I have several databases with lots of reports that contain charts. They all looked fine when using Windows XP. A while...
1
by: =?Utf-8?B?UlJN?= | last post by:
Hi all, I I tried to find the group for Virtual Server but failed, so I have placed this in general. My problem. During the installation of Virtual Server 2005 R2 SP1 The installer stops...
1
by: nathanpr | last post by:
I am having problems with adding a deleting a printer port in code for Windows Vista. I am creating the port with AddPortEx() (I know this is obsolete, but the adding works in Vista, so I have no...
4
by: =?Utf-8?B?aGFycG8xNA==?= | last post by:
I have installed firefox 3 for my new vista operated machine. I get the following error message: Could not initialise the application's security component. The most probable cause is problems...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.