Irradiate Startup Behaviour In VS2008 And GC?

May 6, 2009

If VB5/6 could read Unicode I would remain in it for ever as it is to me the most efficient way of getting all things done, and I have likely done more in VB classic than most care to try on VS.NET Now, in the midst of trying this system I keep a red light lit in the back of my head, on constant alert due to the GC part of .NET.

No matter what I read, I just get more precarious about the implementation of a Garbage Collector in VB, as this means I cannot absolutely say that a username and password is cleared from memory when I want to.In spite of tallking directly to Mr Bjarne Stostrup (the inventor of C++) and reading two ebooks of a few hundred pages each over the past night, some things still boggles the mind.

Such as...Why in heavens name does the MSDN library opener say "Help is updating to reflect your recent changes. This may take several minutes"Well its not so bad if it happend once, as on the installation of the MSDN disks, but when it happens EVERY TIME that I open MSDN or VS2008, that makes me wonder.Especially when I just closed VS2008 and opened it again five minutes later.

The latest "update" according to the MSDN opener took not only a few minutes but approx. 20 minutes, although I did nothing to change anything since the last time I opened it.Is there any way to disable this constant updating of nothing?

Once more back to the GC issues.Does anyone have a simple to use class, so that at my will I can issue a simple call to a method to clear anything and everything unused from the GC box, short of having to close my application and reopening it?I mean, would it be to much to ask for a simple command that allows us to do this, without having to "imrpove on the MS developers years of efforts" by our own non standardized methods?

What I would like to see implemented in VS.NET would be a simple thing for the boys and girls at Mr. Gates command, to add the following

....GC.ClearAllDead

When called, it guarantees to clean the GC, empty all unused addresses and simply Dispose and Finalize everything at our will, and not leave this sometimes time and security critical part to the will of a users sometimes slow and willful PC.

Everyone knows how easy it is, and common to date that you load a webpage with some flash or adobe files and your computer starts sounding like a spaceship ready for relaunch.Quite obviously, something is running up your CPU and memory usage, and doing things you did not ask it to do when going to read your blog pages for example.Often I have experienced this, and still do on a daily basis, and I sweat every time I think of the possibility any application starts accessing memory addresses to scope up whatever junk is left in memory.Coupled with Garbage Collection potentially leaving items in memory addresses until it wants to free this itself.Now what if someone sneaks a trojan of a new variant onto your system, and this constantly sniffs your RAM for new funny and useful code.

there went your UID/PWD combo to both online banking, blogs, GMAIL, hotmail and all other nice things you use. Consider yourself facebooked in a nasty way, and then tell me GC is all good and poses no risks.So, the addition of the simple GC cleaner above would have been, and should have been, in my oppinion, the first and foremost update to the .NET package before it even was released, thus making it easier and faster for new and old programmers to avoid this cause for (perhaps to be considered as) paranoia.With my background from security and time critical related work, I would still prefer to patch the holes before they become an issue, and I will continue to chose being paranoid and safe rather than leaving this potential hole open.

View 7 Replies


ADVERTISEMENT

Hide Form On Startup If App Occurred Because Of Windows Startup?

Jun 20, 2010

I can hide my startup form (or make it appear hidden) on startup. I can start my app on windows startup--through registry values--if the user checks a checkbox.

But if the app starts up on windows startup, I want the form to be hidden, so the program can just keep working without bothering anyone. If it starts up because the user started it, I want the form to be showing, because the user probably wants to change some settings or something.

View 8 Replies

Make An Application To Startup At The System Startup?

Mar 4, 2010

How to make an Application to startup at the system startup? and How to enable and disable?

View 6 Replies

Different Behaviour Between PrintDocument And PageSetupDialog?

Mar 11, 2011

In a program I am using the standard PrintDocument, PageSetupDialog and PrintPreView controls. I am attempting to print a screenful of information which covers three A4 printed sheets. The printed format is OK except that the positioning on the page. Changing the margins in the PageSetupDialog makes it worse.So I wrote the following code in the Form Load event to see what was going on -

While
True
Dim
MsgStr As

[code]....

View 3 Replies

Inconsistent Combobox Behaviour?

Sep 12, 2011

I have an application which was developed in vs2005 with numerous forms which use the combobox for selecting from lists of items. The usual setup is as follows:

Combo.Datsource = BusinessObject

Combo.DropdownStyle = DropDownList

Combo.AutoCompleteMode = SuggestAppend

Combo.AutoCompleteSource = ListItems

However, compiled under vs2005 when tabbing to a combo and typing a number of characters the combo would highlight the first matching item and on pressing tab, would select it and the user would move to next field.

With vs2008 the same item might be highlighted but pressing tab doesn't select the item unless its the only item matching the first character. The only way of selecting the item highlighted from the suggestappend is to press enter prior to the tab key.

I also noticed some users experiencing the same behaviour when the app was compiled with vs2005 on some PC's but not others as if it had something to do with the PC config.

Has anyone any ideas how to get around this as it can lead to errors in data capture.



Kind regards.



View 8 Replies

Put Behaviour Logic When Using POCOs?

Jan 26, 2011

I never used POCOs, so I have the habit of putting a lot of logic in my business object classes. Hence I believe I'm missing some important concepts about class-layouts, and the thought-process that is needed here.

Say if you have two classes; Company and Employee. Could you give some examples of what classes you would build "around" these that take care of various behavior/validation etc.? (Like some class names, and a brief description of their purpose)

View 2 Replies

Strange COM Behaviour Called From .net?

Oct 13, 2010

i am working on an application which calls the COM component of a partner's application.Ours is .Net, theirs isn't. I don't know much about COM; I know that the component we're calling is late-bound i.e.obj As Object = CreateObject("THIRDPARTY.ThirdPartyObject")We then call a method on this COM object (Option Strict Off in the head of the VB file):obj.AMethod(ByVal Arg1 As Integer, ByVal Arg2 As Integer, ByVal Arg3 as Boolean)I am a bit nonplussed that even though this call works, this overload doesn't exist in the COM interop .dll that is created if I instead add a reference to the COM server using Add Reference. The only available call to this method that it says is available is AMethod().

View 3 Replies

.net - Different Behaviour When Using Response.Redirect And SiteMaps?

Oct 7, 2011

My ASP.NET (VB.NET) application uses SiteMaps to display a navigation menu on the top of each page. In the code behind of some of the pages, I am dynamically amending the URLs of the SiteMaps nodes (to add parameters to the end of the URL) e.g. say I have somePage.aspx.vb and anotherPage.aspx.vb and they both contain the following:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
AddHandler SiteMap.SiteMapResolve, AddressOf Me.ExpandForumPaths
If Not Page.IsPostBack Then
Setup()

[code]....

My problem is this, if I am in the code behind of somePage.aspx and I do a Response.Redirect("~/anotherPage.aspx") - then, when anotherPage.aspx.vb is being loaded, it is the ExpandFormumPaths method of somePage.aspx.vb that is hit, not that of anotherPage.aspx.vb.

My understanding is that a Response.Redirect tells the browser to do a new request to the supplied URL - I don't know why it's hitting the method belonging to the previous page.

I've tried amending the method names (i.e. not having the node processing method called ExpandFormumPaths in all classes) but I still encountered the same issue.

When I go straight to the URL of anotherPage.aspx the correct method is hit, it is only when I am using Response.Redirect that this happens.

View 3 Replies

C# - Using IHTMLElement5/6 (for IE8/9) In IE6/7 - Does It Divert To IHTMLElement Behaviour

Mar 8, 2012

Basically, IHTMLElement5 and IHTMLElement6 are all extended interfaces for the main IHTMLElement as per the versioning rules below:

IHTMLElement IE4
IHTMLElement2 IE5
IHTMLElement3 IE5.5
IHTMLElement4 IE6
IHTMLElement5 IE8
IHTMLElement6 IE9

Of course, each new extended interface has the old members in it + its own new members, properties etc. However, some of the members (for instance, .getAttribute) are the same name but have been updated. So, my question is, if I use (say) IHTMLElement6 to declare my HTML Element and run the code on a client that only has IE6 installed, when will my object just fail and remain as Null/Nothing when I set it, or is mshtml.dll smart enough to realize whats going on and defaults to IHTMLElement4 (actually, IHTMLElement) behaviour?

Just to clarify the last statement in brackets, .getAttribute was added in IHTMLElement and updated in IHTMLElement5 and IHTMLElement6 - so, if someone has IE6 installed only, then I would expect the behaviour to default/revert back to IHTMLElement (not IHTMLElement4) - and if it does not do that, then I expect my code to crash. Basically, my question is, what will happen exactly?

Summary of Question (read if you find necessary, just a reclarification for those who need it):Basically, I want to be able to declare something as IHTMLElement6 so I can make use of the updated methods which have the same name between IHTMLElement and IHTMLElement6 (such as .getAttribute). This way, on IE9 users IHTMLElement6's version of .getAttribute will be taken advantage of, while at the same time IHTMLElement's version of .getAttribute will still work for (say) IE6 users without breaking my code - this is the point where my question comes in, when using a IHTMLElement6 object, even though it is an IE9 interface, will IHTMLElement's (IE4 interface) version of .getAttribute kick in/work or will I get a null reference exception or other runtime error?

View 2 Replies

Class Names And Namespace Behaviour?

Sep 5, 2010

1. create a blank VS2010 web project called "MySite" targeted at 4.0

2. create a new class object, calling it "class1.vb" (cause it's so unique!!)

3. change default code to read as such...

Namespace MySite
Public Class Functions
Public Shared Function WhatIsTodaysDate() As String
Return Date.Now.ToLongDateString

[code]....

Why is VS asking me to call the namespace twice if I use the "Imports" directive?I'm sure this has got something to do with VS2010 and the 4.0 framework.

View 2 Replies

IDE :: Inconsistent Behaviour When Filling Arrays?

May 29, 2010

This works:

Dim zArray(5) As String
zArray = (From zS As String In zArray Select "HelloWorld").ToArray

This doesn't:Dim zArray(5) As String = (From zS As String In zArray Select "HelloWorld").ToArray

It seems inconsistent to me, though I may be missing a subtle difference instead of it being an IDE inconsistency?

View 3 Replies

Vb6 Migration - Library Behaviour While Migrating From VB6 To .NET?

Nov 24, 2010

I have a VB6 application which i need to convert to VB.NET 3.5. The application uses a lot of Business objects libraries and some external libraries.I would like to know if these libraries would behave the same way when i move from VB to VB.net?Are there chances that things would break?

View 1 Replies

VS 2008 Modify The Form Behaviour?

May 12, 2009

I have a problem with form instantiation. This is what I want to achieve: I want to create forms with a toolstrip attached to them right from the moment these forms are instantiated. I have several ideas:

1. making custom Form Control

2. modifying the new method for forms

I'd like to focus on idea 2. I want to know if there's a way to alter the in-built New() method, so whenever the compiler instantiates a form, somehow when the constructor(New method) of each form is invoked, the compiler adds a toolstrip to the form.

View 5 Replies

Application Not Starting Wit New Startup Form After Deleted The Previous Startup Form?

Nov 11, 2009

i deleted my previous start up form to be replaced by another one but each time i launch the application,the deleted start up form is still displayed.i dont know from where this deleted start up form is being loaded.

View 3 Replies

Change The Default Behaviour Of Headers In A Datagrid?

Mar 4, 2009

I want to change the default behaviour of headers in a datagrid. By default, if the sum of all column's width is lower than datagrid's width, then background color appears on the header and I want to keep it just like header's color, as ListView does. I've attached an image to show you in a better way what I want.

View 3 Replies

Different Behaviour Of Offset For Seekorigin.end For Emulator And Device

Jun 30, 2010

I have a smartdevice program. In this program, I have the following statement: xxx=mstbinreader.BaseStream.Seek(offset, SeekOrigin.End) When this program is run for Windows Mobile 6 Professional emulator and Windows Mobile 6 Professional device, following is observed: When offset is zero, both emulator and device return 20,467,484

[Code]....

View 1 Replies

Disabling The Behaviour Of The ", ` , Etc Characters For A Textbox?

May 30, 2010

I want to filter the input of keys for a textbox and wonder if the behaviour of the merging of two characters can be disabled for a textbox? I have a code writen that I thought was ready but this behaviour messes up my integer input.

Sample: " + o = รถ

For numbers this does works different and not desirable for me: " + 9 = "9

View 8 Replies

Unexpected Behaviour When Adding A File To A Solution

Sep 1, 2011

I did so by chosing "add existing file". For purposes to reproducing this let's say the file is in c:emp. So I added c: emphelp.chm.

I set the properties to "copy always" under the option "copy to output directory".

Then I compiled and it worked fine.

I then updated the file in c: emp with changes and compiled. I expected the updates would be copied into my program but they did not..

View 3 Replies

VS 2008 Odd Behaviour When Attempting To Activate A Form?

May 12, 2009

I have a program where the main form is called (shown/activated) via a keystroke combination. When the form pops-up, I've set the focus to a textbox to begin typing right away.

When the keystroke event occurs, I have:Me.Activate()And in the Form_Activated event:

Textbox1.Focus() Simple right? It works the way I want it to, even after I've compiled and run the EXE, but ONLY if Visual Studio 2008 is running. Once I close my project in VS, with the program still running outside VS, the form is shown, but input focus is not set to the textbox.

Input focus is however still set to whatever it was previously, like a word document for example. My form will be topmost, but if I attempt to input text, it would still be entered into the word doc. why having my projects' source open in VS has anything to do with running the compiled EXE of said program?

I've even tried API calls to SetForegroundWindow and ShowWindow with the same result.

View 4 Replies

Why Does The Way In Which Reference To Another Class Change The Behaviour Of .Value Controls

May 15, 2012

In my code I use two classes. One contains the UI form, the other containsa method to write to a file. During coding I found out some behaviourwhich I don't understand. The code below shows (what I believe to be)the relevant part. The file writing part is substituted by a MsgBox for simplicity.I have the following controls in one form:

NumericUpDown
Button
With the following classes and methods:

[code].....

View 2 Replies

Ajax File Upload Unusual Behaviour When Using Sessions

Jan 30, 2011

I have just implemented an Ajax File Upload control that uses a progress bar. I am a little confused. When i use the control on pages that dont use sessions, the progress bar with no problems will show the user the actual progress of the file being uploaded from 0%,1%,2%,3%.......% to 100%. Now when i move this control onto a web page that uses a session, this session stores the user information such as screenname, email, etc... the file uploads with no problems but the problem is that the progress bar does allow the user to see the progress until the file is finised uploading and the progress bar jumps straight from 0% to 100% uploaded and doenst really show the full progress of the file whilst being uploaded.

Why is this behaviour occuring when i use sessions? where the progress of the file being uploaded isn't being shown to the user until the file uploads.

View 1 Replies

Change Behaviour Datagridview Cell When The Form Loads?

May 10, 2012

if i want to make a change to a cell in a datagridview when the form loads, how would i go about doing this?

View 19 Replies

DataRow.Delete Method Responds With Erroneous Behaviour

Dec 4, 2009

I'm working with a disconnected dataset that is NOT using a database. I'm maintaining an external file in xml format using the ReadXML and WriteXML methods of the dataset. I have a Holiday table structure in the dataset with the following columns:

-HolidayDate

-HolidayName

When the app starts I read the Holidays into the dataset. I then check the Holiday table to see if any of the Holidays are in the past. If so, I want to delete the given Holiday row from the Holiday datatable. I'm running the following code: [code] If the HolidayDate is in the past it calls the Delete method ok but when it tries to execute the Next statement it raises an InvalidOperationException exception with the message "Collection was modified; enumeration operation might not execute".

View 1 Replies

Supress Zoom Out Behaviour From Essbase While Retrieving Data?

May 8, 2012

I have written some code to extract data from Essbase. Before retrieving the data I Zoom In on one of the cell and then run the code to retrieve data. However, after successfully retrieving the data it zoom out to show only top generation. How can I avoid Zoom out after retrieve?

x = Essbase.EssVConnect(DirectCast("[" & Globals.ThisAddIn.Application.ActiveWorkbook.Name & "]" & Globals.ThisAddIn.Application.ActiveSheet.Name, String), "user", "password", "server", "application", "database")

View 1 Replies

Binding Radiobuttons To Application Settings Change Their Behaviour When Clicked?

Jun 24, 2010

I have three radiobuttons in a groupbox. When they are not bound to application settings, they behave normally.After binding each of their checked properties to application settings, the following happens: I have to click an uncheckedradiobutton two times to have it checked. After the first click, all three are unchecked.

View 2 Replies

Communications :: Socket Behaviour - Created A Client That Can Send And Receive Data Via TCP Sockets

Aug 26, 2010

I have created a Client that can send and receive data via TCP sockets. The objects stored on the serverside are the *exact* same object used for the client. They use the same send and receive protocols.

Now, when i send a string from the server to the client , it does precisely what it should do. However when I send a string to the server.... I do receive the string as an equal length of NULL characters. I run the server and client locally.

Basicly what can influence the behaviour between two completely identical objects performing the exact same task? I wonder if there is some socketflag issue if the TCPlistener.accept function returns a completely different setup then the one I R used to.

(if it is of any interest, the send protocol is asynchronious)

View 3 Replies

Suppress The Event To Be Fired And To Achive The Default Behaviour Of The Textbox Or Other Controls Present On The Form?

Dec 4, 2010

I have menu item, in which I have specified ShortCutKeys as "Del". On click of menu item I have called specific method. I have one form on which one textbox is placed. When I hit the "Del" key the same method which gets called on menu item click is fired. I want the default behaviour to be followed by the textbox. how to suppress the event to be fired and to achive the default behaviour of the textbox or other controls present on the form.

View 2 Replies

Recreate The Behaviour Of A Button Or Command Button On An User Control

Dec 20, 2011

I would like to recreate the behaviour of a button or command button on an user control. I need to layout a group of this user control on a form so user can select only one at a time. When users click on one of this user controls a selection frame is drawn to indicate that it has been selected. The problem I have is clearing the selection frame when other control is clicked on. How do buttons or command buttons do this? If you layout a group of buttons only one is highlighted. I have tried using different events like LostFocus and Leave and nothing seems to work.

View 3 Replies

Forms :: Design Time Control Behaviour On Tab Control?

Feb 9, 2011

i have a splitter control on tab 2, a grid and a scheduler control on tab 3..looks fine...i save it....close the form...reopen the form, and the controls are all resized and moved around on me....and not for the better.

wierd thing is that when i run the app, the controls are placed properly, but design time is totally f&*ked up.I know this one isn't me. is it the tab control? should i just do toggle buttons at the top and show/hide my own panels? this is just too freaky to deal with. is there an easy work around for this?

View 1 Replies

Connect To SAP With VS2008?

Jun 29, 2010

I've found several articles/examples of connecting to SAP using VS03 however not with using only VS08. I understand they are working on a new connector (3.0) but need to connect now.

View 1 Replies







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