CoMate + Duplicate Label + IDE Crash

Just starting out? Need help? Post your questions and find answers here.
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

CoMate + Duplicate Label + IDE Crash

Post by Marco2007 »

Hi,

does anyone know, what duplicate label mean?
Just ported some old stuff to 4.30 and included CoMate.

There`s a compiler warning: "Duplicate Label" at line:

Code: Select all

IID_IUnknown: ; {00000000-0000-0000-C000-000000000046}


...And when I change the language to english (because I wanted to know the correct name of the error), the IDE crashes...
Image

thanx for helping
Marco
PureBasic for Windows
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Post by Arctic Fox »

Is a label with the same name defined somewhere else in the code (it is in fact pretty big 8))?
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Post by Marco2007 »

No. :oops:
Last edited by Marco2007 on Mon Apr 15, 2019 9:06 pm, edited 1 time in total.
PureBasic for Windows
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Post by Marco2007 »

Oh, I just found the problem.
Freak`s IEnumString has the same Label :oops:

... but the code is still crashing.
Last edited by Marco2007 on Mon Apr 15, 2019 9:07 pm, edited 1 time in total.
PureBasic for Windows
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Post by Arctic Fox »

And that is a label defined in the 'main' code?
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Post by Marco2007 »

Main code is about 10.000 lines + 3 Includes (Esgrid, Comate and IEnumstring). It`s an App making the work with SAP (MM/SD/PP) easier...
PureBasic for Windows
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Post by Arctic Fox »

Okay, now I understand it too :D
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Well, just tried Freak's EnumString program here (PB 4.3, Vista 32) without any COMate or EsGRID and it crashes on exit!!!

At this minute; with this crash, I'm not sure it is worth investigating any links between EsGRID, COMate and EnumString!

I have programs in which EsGRID and COMate work together without a problem.

**EDIT : okay, sorted the crash out. :) I've just hacked up an example using COMate (sapi) and EnumString and it seems to be working fine.

****EDIT : added a complex EsGRID to the program with COMate and EnumString... all is working fine here Marco!
I may look like a mule, but I'm not a complete ass.
Post Reply