Application made in Visual Studio takes very long to start up [closed] - vb.net

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I wrote an app in Visual Studio and is about 20k+ lines, but I don't know why it takes so long to start up. I have a splash screen just to test it to see if the program is working, and it is, but I have to wait for so long for the app to actually get to the start up form. A splash screen for this app isn't ideal, but was only using a splash screen for test purposes. Any ideas? Language is VB. It has 7 forms excluding the splash screen form.

You could use NGEN and the GAC, however the subject is complex. You will find a good article from Microsoft on this subject here.
Usually your assemblies (exe's, dll's) contain IL code (Intermediate Language code). When you start the program this code is compiled just in time (it is jitted). NGEN will compile your assemblies to native code (Pentium code).
The GAC is the global assembly cache. If you put your NGENed code there, this will increase startup.

Related

How do you make a simple Cocoa/Objective-C text editor [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to know how to make a very, very simple text editor with Xcode. I only want it to be able to save, load, and write text files. I am just doing it out of curiosity.
Here's a complete project for TextEdit the text editor that comes with OS X: https://developer.apple.com/library/mac/samplecode/TextEdit/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011741
If you want to start from scratch and do it yourself, take a look at the NSTextField class, or for saving, take a look at NSArchiver. All your pretty much have to do is create a new project, add an NSTextField to your window, and write the code to load and save the file.
Get the book Cocoa Programming for Mac OS X by Aaron Hillegass. It will show you how to get started, or just check out developer.apple.com. Lots of documentation there.

Look and Feel Difference between design view and application launch [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I'm developing a application in visual studio 2010 - VB express edition in Windows 7 x64
I'm new in visual studio and VB.
My question is about the visual of my form.
The visual of my application is diferent when i launch the app - run button - and when i'm on the design view tab - inside visual studio.
in design view:
http://api.photoshop.com/v1.0/accounts/9b66012024ca4fbca3beddffc82e084b/assets/de1def7323514225bfe8c7bc6b9b9f47/renditions/1024.jpg?md=1362888303000
running:
http://api.photoshop.com/v1.0/accounts/9b66012024ca4fbca3beddffc82e084b/assets/7c6d11926450453fad3cf44588f16ca3/renditions/1024.jpg?md=1362888304000
In java you have to set the look and feel. in VB is the same?
thanks.
Application.EnableVisualStyles is documented thus:
This method enables visual styles for the application. Visual styles are the colors, fonts, and other visual elements that form an operating system theme. Controls will draw with visual styles if the control and the operating system support it. To have an effect, EnableVisualStyles() must be called before creating any controls in the application; typically, EnableVisualStyles() is the first line in the Main function. A separate manifest is not required to enable visual styles when calling EnableVisualStyles().
Emphasis mine.

Convert vb.net to vb6 [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have written code in c# and vb.net but now the requirement is vb6.Can i convert vb.net code to vb6.How to add namespace in vb6 System.Security.Cryptography
Quite apart from the fact that the language VB.NET is far more feature rich than VB6, the fact that you have developed in VB.NET means that you have made extensive use of the .NET class libraries (including System.Security.Cryptography that you give as an example). These are simply not available to VB6 code. There is no way to convert the code, you will have to start again.
If the company doesn't want the .NET Framework as you state, then you will have to either find some COM libraries that use the same functionality (that they are happy with you using), or you will have to roll your own (not advisable in the case of security functionality). Or you could find a different job...

How to do statistics on a cocoa application startup time? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a cocoa application,I want to get the time from the application startup to it startup succeed.And then post the time to my server.Can someone give me some tips?
Define your starting point (e.g. application:didFinishLaunchingWithOptions:) and ending point (e.g. viewDidLoad on the main view controller). Create a class (with + messages) that has start and stop calls. Once you get stop, post the time to your server (asynchronously of course).
all this measuring wont take into account the runtime loading.
classes loading & !frameworks loading
it happens before your main and even instruments won't correctly profile it
although it will show that an amount of time passes between 'Run App' and main!
this load can have a considerable influence on your time especially when frameworks have been swapped out / you do a cold start
tried at WWDC WITH apple engineer and we could reproduce times ranging from 3s(normal time for my app) to 10(when we used safari before!)

How to run Webkit nightly builds on Windows without Safari? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I've downloaded latest nightly builds from official Webkit site. It contains some exes, dlls, and resources. However, none of exes can be performed.
I also tried to google some answers, they all mentioned one run-safari script or run-nightly-webkit.cmd, but both of them didn't get shipped with nightly build. So, how to run this nightly builds?
Thanks.
You could not run them directly outside the building environment, because there are some environment variable should be specified.
The easy way is to run it in the building environment, you could choose MiniBrowser as starting point.
Another way, you many mention each message while you run it outside which may remind you to setup something or missed something, then Google it.
Finally, you also could study run-safari script in detail.
Here is a reference for you to check the building steps:
http://blog.ashodnakashian.com/2012/01/building-webkit-on-windows-7-with-vs2010/
Good Luck!