app crash when there's more than 3000 entries in std::map ?

Hi everyone

I have this strange behaviour happening with this code which I can't
explain. On my computer when I set nt with a value greater than 3000
it crashes. Is there a max number of keys I can use with a std::map ?

thanks a lot

#include <vector>
#include <iostream>
#include <map>

#include <string>


int main()
{
	float t = clock();
	int nt = 3000;
#if 1
	hash_map<std::string, int, hash<std::string> > mymap;
	for ( int i = 0; i < nt; ++i )
	{
		string tmp = "test" + i;
		mymap[ tmp ] = i;
	}
	for ( int i = 0; i < 10e5; ++i )
	{
		int a = (int)(drand48() * nt);
		string tmp = "test" + a;
		hash_map<std::string, int, hash<std::string> >::iterator it =
mymap.find( tmp );
		if ( it != mymap.end() )
		{
		}
		else
		{
			printf("not found\n");
		}
	}
	unsigned max_size = mymap.max_size();
	printf("%d\n", max_size );

#else
	std::map<std::string, int> mymap;
	for ( int i = 0; i < nt; ++i )
	{
		string tmp = "test" + i;
		mymap[ tmp ] = i;
	}
	for ( int i = 0; i < 10e5; ++i )
	{
		int a = (int)(drand48() * nt);
		string tmp = "test" + a;
		std::map<std::string, int>::iterator it = mymap.find( tmp );
		if ( it != mymap.end() )
		{
		}
		else
		{
			printf("not found\n");
		}
	}

	unsigned max_size = mymap.max_size();
	printf("%d\n", max_size );

#endif
	printf("time %f\n", (clock() - t ) / float( CLOCKS_PER_SEC ) );

	return 0;
}

#endif
0
mast4as (90)
8/12/2010 5:33:22 PM
comp.lang.c++ 48807 articles. 0 followers. Post Follow

4 Replies
204 Views

Similar Articles

[PageSpeed] 34
Sorry you need to add

#include <ext/hash_map>
using namespace __gnu_cxx;
namespace __gnu_cxx {

// hash specialisation to allow hashing of strings
template<>
struct hash<std::string>
{
	size_t operator()(const std::string &__s) const { return
__stl_hash_string(__s.c_str()); }
};

} // namespace __gnu_cxx OR std

at the top if you want this to compile. But hash_map and map behaves
the same

using c++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
On Aug 12, 6:33=A0pm, mast4as <mast...@yahoo.com> wrote:
> Hi everyone
>
> I have this strange behaviour happening with this code which I can't
> explain. On my computer when I set nt with a value greater than 3000
> it crashes. Is there a max number of keys I can use with a std::map ?
>
> thanks a lot
>
> #include <vector>
> #include <iostream>
> #include <map>
>
> #include <string>
>
> int main()
> {
> =A0 =A0 =A0 =A0 float t =3D clock();
> =A0 =A0 =A0 =A0 int nt =3D 3000;
> #if 1
> =A0 =A0 =A0 =A0 hash_map<std::string, int, hash<std::string> > mymap;
> =A0 =A0 =A0 =A0 for ( int i =3D 0; i < nt; ++i )
> =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 string tmp =3D "test" + i;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mymap[ tmp ] =3D i;
> =A0 =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0 for ( int i =3D 0; i < 10e5; ++i )
> =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 int a =3D (int)(drand48() * nt);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 string tmp =3D "test" + a;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 hash_map<std::string, int, hash<std::stri=
ng> >::iterator it =3D
> mymap.find( tmp );
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if ( it !=3D mymap.end() )
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 else
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 printf("not found\n");
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0 unsigned max_size =3D mymap.max_size();
> =A0 =A0 =A0 =A0 printf("%d\n", max_size );
>
> #else
> =A0 =A0 =A0 =A0 std::map<std::string, int> mymap;
> =A0 =A0 =A0 =A0 for ( int i =3D 0; i < nt; ++i )
> =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 string tmp =3D "test" + i;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mymap[ tmp ] =3D i;
> =A0 =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0 for ( int i =3D 0; i < 10e5; ++i )
> =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 int a =3D (int)(drand48() * nt);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 string tmp =3D "test" + a;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 std::map<std::string, int>::iterator it =
=3D mymap.find( tmp );
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if ( it !=3D mymap.end() )
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 else
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 printf("not found\n");
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0 }
>
> =A0 =A0 =A0 =A0 unsigned max_size =3D mymap.max_size();
> =A0 =A0 =A0 =A0 printf("%d\n", max_size );
>
> #endif
> =A0 =A0 =A0 =A0 printf("time %f\n", (clock() - t ) / float( CLOCKS_PER_SE=
C ) );
>
> =A0 =A0 =A0 =A0 return 0;
>
> }
>
> #endif

0
mast4as (90)
8/12/2010 5:34:57 PM
On Aug 12, 12:33=A0pm, mast4as <mast...@yahoo.com> wrote:
> Hi everyone
>
> I have this strange behaviour happening with this code which I can't
> explain. On my computer when I set nt with a value greater than 3000
> it crashes. Is there a max number of keys I can use with a std::map ?
>

It's because this doesn't do what you think it does:

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 string tmp =3D "test" + i;

It does *not* make a string named "test1", "test2", etc.
Instead, it does pointer arithmetic on the const char*
that points to "test".

So
   ("test" + 0) is a pointer to the string "test"
   ("test" + 1) is a pointer to the string "est"
   ("test" + 2) is a pointer to the string "st"

etc.

Once i passes the null byte in the string literal, though,
you're into some random chunk of memory. All bets are off.
Eventually you're reading outside of memory that belongs
to your application and you get a segfault.

--Jonathan
0
8/12/2010 5:49:01 PM
On Aug 12, 6:49=A0pm, Jonathan Lee <jonathan.lee....@gmail.com> wrote:
> On Aug 12, 12:33=A0pm, mast4as <mast...@yahoo.com> wrote:
>
> > Hi everyone
>
> > I have this strange behaviour happening with this code which I can't
> > explain. On my computer when I set nt with a value greater than 3000
> > it crashes. Is there a max number of keys I can use with a std::map ?
>
> It's because this doesn't do what you think it does:
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 string tmp =3D "test" + i;
>
> It does *not* make a string named "test1", "test2", etc.
> Instead, it does pointer arithmetic on the const char*
> that points to "test".
>
> So
> =A0 =A0("test" + 0) is a pointer to the string "test"
> =A0 =A0("test" + 1) is a pointer to the string "est"
> =A0 =A0("test" + 2) is a pointer to the string "st"
>
> etc.
>
> Once i passes the null byte in the string literal, though,
> you're into some random chunk of memory. All bets are off.
> Eventually you're reading outside of memory that belongs
> to your application and you get a segfault.
>
> --Jonathan

Thanks a lot yes ... I just figured (long day at work ;-(

Thank you so much
std::string createRandomString()
{
	char alpha[ 6 ] =3D { 'a', 'b', 'c', 'd', 'e', 'f' };
	char str[ 10 ];
	for ( int i =3D 0 ; i < 10 ; i++ )
	{
		int a =3D int(drand48()*5);
		str[ i ] =3D a;
	}
	return std::string( str );
}

int main()
{
	float t =3D clock();
	int nt =3D 10000;
#if 1
	hash_map<std::string, int, hash<std::string> > mymap;
	for ( int i =3D 0; i < nt; ++i )
	{
		string tmp =3D createRandomString();
		mymap[ tmp ] =3D i;
	}
	for ( int i =3D 0; i < 10e5; ++i )
	{
		int a =3D (int)(drand48() * nt);
		string tmp =3D createRandomString();
		hash_map<std::string, int, hash<std::string> >::iterator it =3D
mymap.find( tmp );
		if ( it !=3D mymap.end() )
		{
		}
		else
		{
			//printf("not found\n");
		}
	}
	unsigned max_size =3D mymap.max_size();
	printf("%d\n", max_size );

#else
	std::map<std::string, int> mymap;
	for ( int i =3D 0; i < nt; ++i )
	{
		string tmp =3D createRandomString();
		mymap[ tmp ] =3D i;
	}
	for ( int i =3D 0; i < 10e5; ++i )
	{
		int a =3D (int)(drand48() * nt);
		string tmp =3D createRandomString();
		std::map<std::string, int>::iterator it =3D mymap.find( tmp );
		if ( it !=3D mymap.end() )
		{
		}
		else
		{
			//printf("not found\n");
		}
	}

	unsigned max_size =3D mymap.max_size();
	printf("%d\n", max_size );

#endif
	printf("time %f\n", (clock() - t ) / float( CLOCKS_PER_SEC ) );

	return 0;
}

#endif
0
mast4as (90)
8/12/2010 5:56:03 PM
On Aug 12, 12:56=A0pm, mast4as <mast...@yahoo.com> wrote:
> Thanks a lot yes ... I just figured (long day at work ;-(
>
> Thank you so much
> std::string createRandomString()
> {
> =A0 =A0 =A0 =A0 char alpha[ 6 ] =3D { 'a', 'b', 'c', 'd', 'e', 'f' };
> =A0 =A0 =A0 =A0 char str[ 10 ];
> =A0 =A0 =A0 =A0 for ( int i =3D 0 ; i < 10 ; i++ )
> =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 int a =3D int(drand48()*5);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 str[ i ] =3D a;
> =A0 =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0 return std::string( str );
>
> }

No problem. BTW, if you want to avoid these random strings
you could probably use next_permutation from <algorithm>
to get some string names. Make a char array of distinct
letters, permute them, and use string::append to get your
dummy string.

(Not entirely related, just something I've found useful
before)

--Jonathan
0
8/12/2010 6:03:14 PM
Reply:
Similar Artilces:

Passing parameters to app during startup
Have been looking on Google but did not find anything. I need to fire an application with parameters, but are unable to do so at this moment. I need to use the command line as follows: c:\apppath\someapp.exe LCFF method Start(cParameters) class App // I would have assumed cParameters would be LCFF, but no such luck TextBox{, Procname(), cParameters}:Show() // Shows an empty string Anyone that can help me with accessing the parameter? TIA -- Johan Nel Pretoria, South Africa. -- Johan Nel Pretoria, South Africa. Johan, >> Anyone that can help me with...

frustrating crashing with SMAC
I have a prob with Alpha Centauri Alien Crossfire on my Win 2k machine. I've installed all the patches and the 2000 compatibility but the darn thing keeps freezing up on me. Out of all the programs and games I have installed SMAC is pretty much the only one which requires me to actually reset the computer since I can't even bring up the task manager like every other program when it freezes. Typically it crashes just as a unit is about to move although it can happen even when I'm looking through the datalinks. The crash usually happens within the first couple dozen or so turns of st...

Checking who terminate app...
Hello everone! =) I'm using BDS 2006 as compiler and writing with VCL. idk how to check who close form user or system? If user do it I will minimize programm and if system - close. Please give me a piece of code that do so check. Thanks you a lot. ...

Slide show app hangs up at first image
Does anyone have an idea why 'feh' would display the first image then hang up. As a stand alone app 'feh' works as expected #! /bin/bash mplayer -fs "Llano June 2008"/P6240073.AVI; mplayer -fs "Llano June 2008"/P6240074.AVI; feh . --cycle-once --scale-down -r -D 5; ../slideshow.sh; TIA Dave On Dec 5, 4:04=A0pm, Dave Kelly <daveekel...@embarqmail.com> wrote: > Does anyone have an idea why 'feh' would display the first image then > hang up. > As a stand alone app 'feh' works as expected > > #! /bin/bash > mplayer -fs...

Is this a bug of std::unique_ptr?
Hi All, I accidently find that the following code works with Visual C++ compilation #include <memory> #include <iostream> using namespace std; int main() { unique_ptr<int> const p = new int(1); unique_ptr<int>& q = p; // assign a constant to a non-constant reference q.reset(new int(2)); cout << *p; // output 2 return 0; } My question is from the 2nd statement of assigning a constant to a non- constant reference. I think the compiler should report an compilation error, but it doesn't. Is this a bug of the code of unique_ptr in the std te...

What is best web map technology for my project?
I have a client who wants an interactive map on their website, but am unsure which technology to use to accomplish it. Any suggestions? Here are the primary functions of the map: 1. Show World map of countries 2. Click / zoom on any country > new map shows states or provinces 4. Click / zoom on state > new map shows major cities and minor cities 5. new map of cities, zoomable into urban areas to show more cities 6. Cities and hyperlinked using a database Not a lot of detail is needed, just a clean, straight scalable system to get to city level (dots) that are hyperlinked. ...

Hovsepian: Apps! Apps! Apps!
Novell CEO: Apps Are Job No. 1 for Linux http://www.cio-today.com/story.xhtml?story_id=021001VE8HV3 <<< In order for Linux to grow into the computing mainstream, the open- source OS needs more applications and a standardized approach to software certification, Novell CEO Ron Hovsepian said in his keynote Wednesday at the LinuxWorld conference and trade show in San Francisco. "The No. 1 thing that we need on Linux is applications," he said. "Whether we like it or not, the application is what drives the final customer decision," he added. >>> John Bail...

[News] CAD Application Company: GNU/Linux Users Often Outnumber Windows; More Apps News
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 FREE CAD for Christmas: MEDUSA4 Personal for Windows and Linux Now Online ,----[ Quote ] | MEDUSA4 Personal is used in 109 countries | for private projects, such as model | engineering. Linux users outnumber Windows | users in about half of those countries. `---- http://www.pr-inside.com/free-cad-for-christmas-medusa4-personal-r1643214.htm 12 Days of Xmas: Day Six - Shotwell (Plus a peek at Shotwell 0.4!) ,----[ Quote ] | I reviewed Shotwell 0.3 a month or so back | (see here) and i found myself pleasantly | surprised by its feature set, ...

get tclapp-wrapped app to display output in DOS console?
We have an application wrapped with tclapp that runs on windows. It writes gunk to stdout. If I run this program from a cygwin bash shell, the output appears as expected and all is well. I recently discovered, however, that the same executable run with the same command line from a DOS shell doesn't display any output in the DOS window. The program appears to run in the background and I have no idea where stdout is going. Is there a way to see my output in a DOS console? I discovered that if I run my program and redirect output to a file, the output does indeed go to the file. I ca...

Japanese Pocket PC text entry problems
Hi all, Recently picked up a used Cassiopeia on the cheap (model number's not on it -- it's a MIPS 150mhz, color backlit 240x320, 32mb ram, SD memory slot). Unfortunately, I'm having a beast of a time getting keyboard input to work on several third-party apps. When I use the on-screen software keyboard, button presses are simply not being passed to the program (the space bar doesn't work under PocketSarien; no buttons are passed, period, to other programs). Note that entry refuses to work under both hankaku (normal single-byte characters used for English software) an...

Problems with mail.app and Mavericks
A good friend of mine with whom I email almost everyday just switched from a browser email to mail.app. She is using a gmail account and is running the latest version of Mavericks on a MacBook Air. We are having some problems and maybe someone here can help. 1) If I send her an attachment, say a jpg and she uses the reply button, the entire attachment is sent back to me instead of just a careted, placeholder notification like <xxx.jpg>. How do we turn this off so we just get the notification. 2) I sent her a small tiff graphic (about 200K) and she could not get ...

Deployment Wizard
I'm new to this forum, and I suspect this has been answered before, but I can't find the information. I have an Access DB that I've developed, split FE / BE, and installed on several customer workstations via downloads from my website. The initial install also installed the 2003 runtime libraries. (Win XP, 2003 Access Developer Extensions) My problem is that now I need to update some of the BE tables and programs in the FE. I've modified the FE to include SQL to make the appropriate table changes in the BE. When I create a new installation package and try to install it, I ge...

FXTreeList-App crashes
My FX-Application crashes, when I update an FXTreeItem-Icon in an FXTreeList (setopenIcon / setClosedIcon) with an event-method (right-mouse-click). Does anybody have an idea ? -- Posted via http://www.ruby-forum.com/. On Thu, 22 Feb 2007 13:15:13 +0100, Jörg Abelshauser <joerg.abelshauser@freenet.de> wrote: > My FX-Application crashes, when I update an FXTreeItem-Icon in an > FXTreeList (setopenIcon / setClosedIcon) with an event-method > (right-mouse-click). > Does anybody have an idea ? > Run it with regular ruby.exe instead of rubyw.exe (if on Windows) to ...

std::copy implementation standard conforming?
Hi All, We came across a crash after upgrading out compiler to Visual Studio 2005 SP1. I traced this down to the checked iterator support. The function looks a little like this: template<class InIt, class OutType, size_t Size> inline OutType* copy(InIt First, _InIt Last, OutType (&Dest)[Size]) { return copy(First, Last, make_checked_array_iterator(_Dest, _Size)); } We're using it to copy into a struct that has an overallocated array e.g struct DataStore { unsigned int length; byte data[1]; } DataStore* data = (DataStore*)malloc(array.length() + sizeof(unsigned in...

#%app
Hi, I recall reading a paper some time ago that describes a use of the #%app construct in PLT Scheme. However, I don't seem to be able to find it again. Does anyone have an idea? I don't mean the PLT documentation, but I am pretty sure it was a workshop or conference paper, or so. Any hints are appreciated. Thanks, Pascal -- My website: http://p-cos.net Common Lisp Document Repository: http://cdr.eurolisp.org Closer to MOP & ContextL: http://common-lisp.net/project/closer/ Pascal Costanza skrev: > Hi, > > I recall reading a paper some time ago that describes a ...

crashes during OpenGL development
Can anyone help me here ? Every now and again, my OGL app will crash. Next time I run it, it will either partially display, or just give me a black screen - almost as if it had run out of memory or some kind of resource. I have to reboot to get it working again. Any ideas ? Thanks - Rodney Rodney Ellisbrook wrote: > Can anyone help me here ? > > Every now and again, my OGL app will crash. Next time I run it, it will > either partially display, or just give me a black screen - almost as if it > had run out of memory or some kind of resource. I have to reboot to get it >...

renaming apps and changing icons
Hi, Is there a simple app to rename app names as displayed on screen, and also changing the programs icon? Thanks! --Randy Starkey "Randy Starkey" <andy.starkeyNOSPAM@NOSPAMvictorychurch.com> aszonygya: :Is there a simple app to rename app names as displayed on screen, and also :changing the programs icon? RsrcEdit. /PaulN On 2006-09-16, <randy.starkeyNOSPAM@NOSPAMvictorychurch.com> wrote: > Is there a simple app to rename app names as displayed on screen, and also > changing the programs icon? No, but there are some moderately compl...

US-TX-Austin: Application Programming, Web Apps, COM/COM+, 2.5 years. (45353257607)
US-TX-Austin: Application Programming, Web Apps, COM/COM+, 2.5 years. (45353257607) =================================================================================== Position: Web Developer Reference: ZYD00026 Location: Austin TX Duration: 6 mos. (Extensions to 2.5 yrs) Skills: System design and development projects Web applications Web applications with COM/COM+, Java scripting, HTML and IIS Use of generally accepted software development methodology Software testing/QA Windows ...

Apps moved around
I looked at my iPad this morning and a lot of apps have moved out of the folders where I kept them. I'm suspecting this is because of the IOS 5 updating having a bug, at least with wireless. Most of these are games my grandchildren play, so I will have to open them up and try to figure logical categories again for them to put them in folders that make sense. I will need to do that on my iPad, where it is a pain to try to move the apps from one screen to another. I did this all once for each app, I hope I don't have to do this daily. It's tough when we only have o...

Re: BIND Crashes
> Hi, > We have a Solaris 9 Sun-Fire-V240 system with 2GB of memory running > BIND 9.2.3. > > Every so often named crashes with this error message: "dispatch.c:1903: > REQUIRE(res->item_out == isc_boolean_true)... exiting (due to assertion > failure)" > > Is there a solution to this? Upgrade. > Thanks > Ken -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org ...

US-TX-Fort Worth: APP PROGRAMMING, Java, C++, Unix; 6M+ (45354240931)
US-TX-Fort Worth: APP PROGRAMMING, Java, C++, Unix; 6M+ (45354240931) ======================================================================= Position: APP PROGRAMMING Reference: ZYD00102 Location: Fort Worth TX Duration: 6M+ Skills: Java, C++, Unix Scope: Support/Development for Integrated Computing Environment which consists of 3 main components, a mainframe/TPF component, a mid-range (Solaris) CORBA service and a client library which implements client-side business rules and encapsulates...

I need help for std::codecvt<>
Hi, everyone, I'm trying to use std::codecvt<> to do the encoding conversion. I am using following code for encoding conversion between wchar_t string and char string(MBCS). I am not sure am I right. The code works, but I'm not familiar with the codecvt, and I don't know my way is the right way to do the job. Could you help me to review the code? This function try to convert a wide string to a MBCS in the loc's charset. I hardcode multiple by 2 here which is not correct, but I don't know how to get the buf length. ===================================================...

Mapping a big file into memory
Hi all, There is a big file and instead of loading this whole file i want to a part of the file loaded into memory.And want to perform searching on the loaded part if the required data is not available unload that Memory part.And go for the mapping of rest part of the file..ie i want to implement similar to demand paging using java. Plz help me out.. with sample code Any help would be very appreciated. Sanjay wrote: > Hi all, > There is a big file and instead of loading this whole file i want to > a part of the file loaded into memory.And want to perform searching on > the >...

Reading text from Google Maps
Is it possible to use JavaScript or any other language to extract all the text from any area of Google Maps? I'm mostly interested in extracting all the street names from a city section, but business names are okay too. I know this is a far-fetched idea, but I can't think of any other method for obtaining all (or most) of the street names of a city. If anybody has any better ideas I'd love to hear them. Thank you. "Robert Crandal" <noreply2me@yahoo.com> wrote on 09 mei 2015 in comp.lang.javascript: > Is it possible to use JavaScript or a...

App install with inf file
I am trying to install some driver files for a USB hardware device. The installation is via an inf file, but wine rejects it because it is not an exe file and wine console just ignores it. Is there any way to execute an inf file in wine? Couldn't find anything about it in winehq docs or forums. Jim On Jun 26, 3:28 pm, Jim Sladek <wb4...@yahoo.com> wrote: > I am trying to install some driver files for a USB hardware device. The > installation is via an inf file, but wine rejects it because it is not > an exe file and wine console just ignores it. > >...