Serialization Suddenly Slow - How To Fix It

Jun 11, 2009

I've been cloning my objects using serialization for awhile, and typically its been quick, at least for my purposes. After a series of updates to these objects, however, now the serialization process is much slower. Trial-and-error has so far failed to pinpoint the cause. Some of the added elements to my object are:

1.binding lists

2. an inherited dictionary class

3. more internal references (the object is actually group of nested objects, and these internal objects have more references to each other than before)

I have been careful to avoid/eliminate references to external elements when cloning, as that can lead to a cascade of extra cloning. So I think the problem is with the object structure itself. This is my serialization routine:

Friend Function CloneObj(ByVal obj As Object) As Object
If Not obj.GetType.IsSerializable Then Throw New Exception("Object not serializable")
Dim bf As New System.Runtime.Serialization.Formatters.Binary.BinaryFormatter

[code]....

View 4 Replies


ADVERTISEMENT

Right Clicking Suddenly Unbearably Slow In VS 2010?

Aug 12, 2010

I have been using VS2010 without any issues, always on the same application. Suddenly within the last my solution has become unbearably slow when right clicking. When doing other projects, it is fine. The only thing I can think of that I changed was disabling the SQL Server debugging.It happens if I right click anywhere within the code editor. Everything freezes for about a minute and a half, then the right click menu shows up. Intellisense seems to work fine. It is only the right click.The project is fairly big, but it has been working fine. I am working on a 2 month old top of the line MacBook Pro (running Windows 7 64 bit in Boot Camp). I did do the patch Tuesday big batch of Microsoft patches in the last 24 hours...

View 2 Replies

Serialization Missing Dot Right Before New Line Serialization

Sep 17, 2009

I've been using XML serialization for a while, and today I realized something really odd. If I have a new line right after a "dot" (.), when i deserialize, I lose the dot. Has anyone ever had this happen to them? The following is my serialization code:

[Code]...

View 2 Replies

Asmx Json Serialization Versus Wcf Json Serialization?

Nov 24, 2011

I have two experimental web services. One is an asmx contained within a .net web application. The other is a WCF service library being invoked from the web application.The asmx basically does everything I need, but I think WCF would be better, except that it doesn't do anything as I would expect after fiddling with the asmx service.For example, the same method behaves differently in each:

' ASMX
<WebMethod(BufferResponse:=True, EnableSession:=False)>
Function Test(aObject as Object) as Object
' object will have been successfully serializaed into a dictionary

[code]...

View 3 Replies

App Has Suddenly Lost All Its Forms But One

Dec 18, 2009

For no reason I can discern my Visual Studio 2008 app (MyApp), which had many forms and reports, suddenly contains only one form, a simple test form I was experimenting with. I am unaware of any problem with the app. I use it to maintain an Access database which is still functional and is in the same place on the disk as it always did. This app and its data are all contained on my laptop computer. The form files all remain where they always did. I used to be able to control my earlier VB6 version of this application if it went off the rails, but I'm in the dark with VS2008.

View 7 Replies

Application Suddenly Won't Work

Sep 7, 2011

I recently had to format my PC, So I moved my project files and build files to my External Hard Drive, and continued to work on my project..I started to receive emails saying that the application is saying "Cannot download the application. The application is missing required files. Contact application vendor for assistance." After clicked view details, I found this:+ Downloading file:///C:/Users/myuser/Downloads/Browser.application did not succeed.I was confused, the .application file is not in Downloads, its supposed to download it from my website. And if I were to open my project on a computer with it already installed, it won't check for updates - it opens really quick without the "Viewing Application Requirments" window.

View 1 Replies

Application Suddenly Won't Work?

Jul 7, 2011

I recently had to format my PC, So I moved my project files and build files to my External Hard Drive, and continued to work on my project..I started to receive emails saying that the application is saying "Cannot download the application. The application is missing required files. Contact application vendor for assistanc

View 2 Replies

C# - Application Suddenly Locking Up

Jan 10, 2012

i have this application, that creates various custom AppDomains, each app domain executes a assembly and its dependencies, like a plugin, a separated assembly, that manipulates database, own resources, etc.

the application runs fine for a while, but suddenly, it locks up... the process does NOT die, it just freezes, i ran a remote debugger on top of it, on the thread window i can see EVERY thread, they are with the status "running" (not "thaw") but, in the same place, not executing. i can pause and run the debug, and it remains in the same place. there are NO locks, synlocks, monitors, on the code and the code for loading the appdomains is very simple, no big deal on it. like i said, its working, but after a while, it locks up. Any ideas on this environment?

View 1 Replies

Application Suddenly Stopped Working?

Feb 6, 2009

i tried updating my application on a vista home basic laptop. i get "myapp.exe has stopped working" then i restore back to the old version, it still give the same error. I am sure the old version is working because I tested it before updating it.

View 2 Replies

MenuToolstrip Contents Suddenly Vanished?

Apr 18, 2012

I went to debug my program as usual using F5 within VS 2010 and suddenly the contents of my menubar had all gone - the text and icons!

how to get this back? Obviously this is mega frustrating for me as it has taken ages to build. Stupidly, I only backed up the code and not the actual files.

EDIT: The icon files in question are in my resources folder and they are still there - just not appearing in the menu!

View 2 Replies

VS 2008 - App Suddenly Changes Size (0xc000007B)

Jul 17, 2010

So, I made an app on visual basic 2008, all cool and stuff, but now I'm experiencing a major problem. When I run my program it just works fine, but after some time (when I don't use the app) it suddenly changes from 42,5 KB to around 100 - 130 KB, and when I try to run it I get this error;The application failed to initialize properly 0xc000007B Click on ok to terminate the application.

So if I extract it again (zipped it), it works again and after some time I get the error again, so the file in the ''zip'' doesn't change.I can ensure I got no virus whatsoever on my computer, nor in my application.I just reinstalled my pc to see if it fixed the problem, it didn't

View 17 Replies

VS 2008 - Why Are Certain Libraries Suddenly Not Recognized

Dec 28, 2009

After successfully running an executable file several days ago, I am suddenly encountering a number of inexplicable errors. One concerns the lack of recognition of two libraries:

microsoft.office.core
microsoft.office.interop.excel

How could they previously be found but not now?I am using another workstation but loaded (so I thought) the same application and references.

View 5 Replies

VS 2008 XP Suddenly Giving Errors On App

Mar 18, 2010

ive been building a app, and have a beta tester who is on xp, im on vista x64, the app works great t my end, an dive also tested it on another pc with vista x64, and on a laptop wit win7 32, Now my beta teste has been testing fine on hes xp rig, up untill today when the WIP build i sent him started kicking up errors all over the place, try as i might i cant narrow it down to were the error is, heres how the app looks on vista and win7:[code]So i thought it might of been something i changed in between the working xp version and the wip but, all i changed was the page title, nothing else, no code etc.

View 4 Replies

Clients Stop Receiving Data Suddenly

Jan 23, 2009

I am working on a client/server application. Everything seems to go well for a while (a few hrs, a few mins its kind of random) then suddenly clients stop receiving data. maybe 1 or two, or all of them. in the end I end up having to restart the server piece to resolve it, but I am trying to understand why its doing this. I've added try catches around the send piece, but it doesnt error out. When the app fires, the listener is started on its own thread. When a new connection is made, that connection is passed to a class that handles all of my connection data(send/receive, responding to commands, etc). The class is started in its own thread, so each connection is running in its own memory space. This issue seems to happen with 1 client connected, or 20, it doesn't really seem to matter.

This causes other issues, like a customer who thinks he is disconnected, will shut down his app, which is supposed to send a command to close the connection on the server side which it does not., so now I have several "closed" connections still open on the server, which is obviously also bad. Another thing I dont get is that it worked fine when I was developing the pieces on my dev box, so I dont get why I have all of these "timeout" issues now. (I put that in quotes, because the timeout period is the default of 10 mins, and I xmit data, at LEAST every minute when the server pushes data updates to all clients)

Here is some of the relevant code
vb
'Command Object, this holds all of the command information being passed back and forth to tell the server what to do, and as well as hold the response.
'The strCMD is the command, strParms is the parameters of the command, obj is ANY object I want to send along with this information
<Serializable()> Public Structure CommandData
Public strCMD As String
[Code] .....

View 7 Replies

Program Suddenly Stops While Debugging With No Errors?

Feb 22, 2012

I've built a windows form application that steps through a wafer map and sends a command to ink specific dies if the bin number is between certain values. While debugging I have run into an issue with the program crashing with no error message anywhere. While stepping through my code, the place the program stops has occured in two different places but both in the same subroutine in the code I use for the network communications. Below is the subroutine I've seen it break on with the two places it has broke indicated.

Private Sub EventHandler(ByVal Args As EventArgs)
Select Case Args.EventP
Case EventPointer.Connected
RaiseEvent Connected()

[code]....

View 2 Replies

VS 2008 Automatic Download Suddenly Not Working?

Jun 25, 2009

I�m using the my.computer.network.downloadfile (something like that) to download the html source to a text file. It has been working for about a year now.

Today it stopped working and the downloaded files are empty. I�ve talked to the people at the website, and they say they haven�t done anything. But they always say that.

Is there a way to "block" an automated download process of this kind, and how do I get around it?

View 10 Replies

VS 2008 Service Suddenly Stops Working?

Aug 16, 2010

I'm having trouble getting my archive service working. The service counts files in a directory and sends a email. Pretty simple. However, it randomly stops working. I debugged the service and found nothing wrong. I also have it writing to the eventlog so that I can use it to determine where it fails It progresses through each function normally. I thought my program was failing at on point, because it was only posting "Email Notification Service is Running". However, I realized it wasn't posting to the eventlog source so I've been playing around with different ways to post the message to the eventlog. Am I missing something from my code below? I'm really scratching my head with this one.

[Code]...

View 5 Replies

VS 2010 Console Application Suddenly Using All Available Memory?

Oct 20, 2010

I ran my console app succesfully 30 minutes ago. Added a single line to write a message out to the console, recompiled and now, when it runs, it eats up all the available memory before bombing out with an OutOfMemory exception! I can see the Memory Usage in Task Manager just rocketing up!

What on earth could be wrong? I can reboot the machines I am running this on as they are live servers.

View 10 Replies

VS 2010 Why Is Visual Studio Suddenly Freezing

Apr 22, 2012

I tried opening the solution and Visual Studio immediately stopped responding. The hourglass cursor would show, then it would resume to the normal cursor for a few seconds, then go back to the hour glass. Whenever I clicked anything the program claimed it had stopped responding and asked me if I wanted to close it. I have no idea what caused this. One thing possibly, is that when I started my computer today, it said several updates had been installed. Like 6 of these were for Visual Studio. Could that have caused it to freeze?

View 5 Replies

GenerateResource / CoreResGen Suddenly Taking Almost 30 Times As Long?

Aug 8, 2010

Starting a few weeks ago, compiling a project (VB.NET, .NET 2.0, VS 2010) has taken several times as long as before. In Task Manager, I noticed ResXtoResources.exe taking lots of CPU for a while. I've finally been able to get some data on this using MSBuild's 'Diagnostic' output setting, and comparing that output to what I see in a branch from a few months back. Most striking are the final lines, which give timings. Before:

Target Performance Summary:
[..]
1395 ms CoreResGen 1 calls
1930 ms CompileLicxFiles 1 calls
2135 ms GenerateApplicationManifest 1 calls
2844 ms CoreCompile 1 calls[code].....

Both projects were compiled on the same system with the same settings. We've made numerous changes, to be sure, but nothing to the order of magnitude that would justify such a change in timings (and only for this one task!). I assume resource generation is getting stuck on something — a circular reference, a missing one, etc. I have been unable, however, to find anything useful on how to trace such a problem down to what I assume is just a single resource file.Short of looking through thousands of checkins or temporarily removing some forms (and thus, their resource files) from the project, is there anything else I can do to figure out the issue? I can't seem to find individual per-resource file timings.

Findings so far:I've created a new, empty project with all the same .resx files in place.The issue is not reproducible in .NET 4.0: compiling the exact same test project takes less than a second.The issue is reproducible in .NET 2.0 as soon as I also add one of the forms from the original project; apparently, it will otherwise not compile the resources "properly".Removing individual .resx files will reduce the timings 'proportionally'; that is: I have unfortunately not found a single file that is the culprit.

View 2 Replies

VS 2008 : ImageList/Memory Errors Suddenly Occur In App?

Apr 16, 2012

The user has been running the app in question for over a year with no issues like this (this is a VB2008 business/database application with an executable 4.6 MB in size). Starting last week, "all of a sudden", the user started getting INTERMITTENT error messages like the following:

Exception has been thrown by the target of an invocation.
Creation of the ImageList handle did not succeed.
Out of memory.
Parameter is not valid.

The last two have been accompanied by the big "red cross" on the form (in the screen shots the user sent me).The fact that the one message mentions "ImageList" and poking around on the Internet for answer on "Parameter not valid" points in the direction of a graphic problem, but nothing has changed in this area for a long time, and the app only uses graphics in a very straightforward way, using images on buttons and menu items, but not doing any in-line graphics methods.

View 1 Replies

C# - XML Serialization In .NET?

Oct 3, 2011

I have xml like this:

<?xml version="1.0" encoding="utf-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="blah@blah.com" start="2011-10-03T15:09:30.481Z">
<ls>

[code]....

Why is XMLSession.FileList.Count always 0. I hypothesize it has something to do with the declaration above it but I am not sure what is wrong with it. Maybe it can't accept a path, if not, how can I do it?

View 2 Replies

"Backup Files" In VB 2008 EE - Application Suddenly Became Impossible To Access

Feb 27, 2009

A routinely used application suddenly became impossible to access, with and error code indicating that the "VB Backup\Backup" file cannot be found. When I click File Open, the projects display as always. I select the application, double click the .sln file--and nothing happens. When I try to access the .vb file in Solution Explorer, it says "Cannot find VB Backup\Backup Files."

What are the Backup Files, when are they created, and why would they suddenly be "gone?" Is there any way to rebuild the Backup Files? I used the application last night and it worked fine. Today it can't be opened because the Backup Files cannot be found.

I have backups of the application folders, but get the same error message. Cannot be opened because the Backup FIles cannot be found.

View 4 Replies

Smtp Has Suddenly Stopped Working - Doesn't Send Anything And Doesn't Generate Any Exception Message

Oct 13, 2010

I use Visual Studio 2003, VB.net, NetFramework 1.4 and Windows XP I have been using the following Code Snippet for a number of years in both Web Services and Windows Applications. However suddenly around the 29th September 2010 it has stopped sending E-Mails from both Web Services and Windows Applications. The same problem has happened not only to my own Network but on two other Networks, one using XP as its Server and the other using Server 2003. All 3 of these are using different ISPs.

[Code]...

View 1 Replies

C# - .Net XML Serialization Based On A XSD?

Oct 20, 2009

I've been serialising and deserialising .net objects using the XmlSerializer class without problem, however we now need somebody else to look at that data to perform some analysis on it.In order to help with that we've produced an XSD based on our class like so:

xsd.exe /t:DataClass Assembly.exe

The start of the XSD looks like this:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="DataClass" nillable="true" type="DataClass" />[code].....

Bizarly, the XML produced does not adhere to the XSD generated from the same class.My question then is, is there a way of telling the XmlSerializer to serialize the object based on a given XSD? As an aside, I've looked at other ways of fixing this: I've tried re-generating the classes from the generated XSD - this seemed to have the same problem.

View 1 Replies

Serialization Using XML File?

Sep 13, 2010

I have a MRU list that keeps on clearing when I close my application. In order to keep this information, I am trying to serialize it to an xml file, however, I can't figure out how to get the list written to this xml file.

Class
<Xml.Serialization.XmlRoot(ElementName:="Class_mrulist")> _
Public Class MRULIST

[Code]....

View 5 Replies

VS 2005 Serialization In XML?

May 20, 2010

I have been working hard with the XML for a couple of days.And when i came to serialization;what the the actual need of Serialization in XML? [URL]

View 8 Replies

Any Disadvantage Of Serialization Of Class?

Jul 2, 2010

I want to know the disadvantage of serialization of a class in vb.net. As I am using it for deep copy only. Is it correct or not?

View 3 Replies

C# - Serialization Across Projects With Inheritance?

Jul 19, 2010

I have a base class ("MyBaseClass") in a project called "BaseFramework" which is included in several solutions within the company. There are several derived class's in various projects throughout the company that inherit from "MyBaseClass". If I then create a List and add derived class's to it, it will not serialize. I realise that if I were attempting to serialize this list, and the base class and derived class were in the same project, I could simply apply the "XmlInclude" attribute to the base class and include all of the derived class's. This is however not possible across projects, because that would require a circular dependency.

View 1 Replies

C# - XML Serialization Assembly For Non-web Projects

Mar 19, 2012

I am attempting to solve the well known problem of automatically generated serialization assemblies in VS 2010, both VB.NET and C#. The "Generate Serialization Assemblies" option in project settings does nothing for non-web projects (see [URL]). Thus the calls to serializers generate file i/o exceptions that are very unfortunate, and for which there is no cure. The method suggested above does not appear to work with VS2010 and SGEN still runs with /proxytypes enabled.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved