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

vb.net Class Library

hi...

can anyone tell me how to run a "class Library" application ?

when i give run the foll Error is comin....

A project with an Output Type of Class Library cannot be started directly

In order to debug this project add an executable project to this solution which references the library project.Set the executable project as the startup project.


To run my application wat should i do?how to create Executables and...?
Dec 19 '07 #1
5 2213
dip_developer
648 Expert 512MB
hi...

can anyone tell me how to run a "class Library" application ?

when i give run the foll Error is comin....

A project with an Output Type of Class Library cannot be started directly

In order to debug this project add an executable project to this solution which references the library project.Set the executable project as the startup project.

To run my application wat should i do?how to create Executables and...?
a class library application or DLL cant be run independently......this is the main difference between a DLL and an EXE...........
you have to reference this DLL in another project...and there you will be able to access the methods of this DLL into your project.....
Dec 19 '07 #2
Thank you for ur kind information...Now i did wat you have told me...Now new error is coming.It is the following....

An unhandled exception of type 'System.OutOfMemoryException' occurred in System.Windows.Forms.dll

Additional information: Error creating window handle.


Please help me...
Dec 20 '07 #3
dip_developer
648 Expert 512MB
Thank you for ur kind information...Now i did wat you have told me...Now new error is coming.It is the following....

An unhandled exception of type 'System.OutOfMemoryException' occurred in System.Windows.Forms.dll

Additional information: Error creating window handle.

Please help me...
this problem is nowhere related with your DLL implementation....................its due to the Design of some or one of your FORMS in your project...........may be you created a Form with loads of controls ..........try to simplify your form design.......
Dec 21 '07 #4
Plater
7,872 Expert 4TB
The error could be in the dll as well, if it has a memory leak it could use up all the memory before the window's form trys to get some of its own?

I have only ever seen this error in situations of an infinite recursive loop. (Runs out of stack space)
Dec 21 '07 #5
dip_developer
648 Expert 512MB
The error could be in the dll as well, if it has a memory leak it could use up all the memory before the window's form trys to get some of its own?

I have only ever seen this error in situations of an infinite recursive loop. (Runs out of stack space)
I am not aware of this situation...thanks Plater for your suggestion....
Dec 24 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: syd | last post by:
In my project, I've got dozens of similar classes with hundreds of description variables in each. In my illustrative example below, I have a Library class that contains a list of Nation classes. ...
6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
4
by: Brian Shannon | last post by:
I am playing around with class libraries trying to understand how they work. I created a class library, library.vb. I placed the library.dll into the bin directory and set my reference. If I...
3
by: eBob.com | last post by:
I have several applications which mine web sites for personal information which they publish. They publish the info in one form, I transform the info into Excel spreadsheets. So all these...
5
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. In this user control we have a class...
5
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
5
by: Rainer Queck | last post by:
Hello NG, Is it possible to share the settings of an application with a class libreary? In my case I have a application and a set of different reports (home made) put into a class library. The...
0
by: drawing in aspnet | last post by:
Question about putting the data layer in a separate class library. I keep reading that the data layer should be separated from the presentation layer and put in its own class library. I am...
4
by: Steve Baer | last post by:
I've already tested this with C# and it works, but I'm being paranoid and I wanted to also check here. Our application has a large class library written in C++/CLI for plug-in projects. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.