Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#8545 - 29/05/2000 02:20 Emplode fails with beta11pre
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
I've got a problem with emplode on beta11pre (the player software is working fine though).

When I try and run emplode I get a message saying

"Microsoft Visual C++ Runtime Library:
Program: c:\program files\empeg-car\emplode.exe
abnormal program termination"

This is on Win2k Professional (release version), I have got Visual Studio 6 (including VC++ 6) installed.

(reported to [email protected])

__
Unit serial number 47 (was 330 in the queue)...
_________________________
Remind me to change my signature to something more interesting someday

Top
#8546 - 29/05/2000 08:23 Re: Emplode fails with beta11pre [Re: andy]
Derek
addict

Registered: 16/08/1999
Posts: 453
Loc: NRW, Germany
Does the same under NT4 (SP6a)

(list 6284, S/N 00299, 4 gig blue)
_________________________
(list 6284, Mk1 S/N 00299 4GB blue [sold]. Mk2 S/N 080000094 20GB blue)

Top
#8547 - 29/05/2000 13:14 Re: Emplode fails with beta11pre [Re: andy]
schofiel
carpal tunnel

Registered: 25/06/1999
Posts: 2993
Loc: Wareham, Dorset, UK
Sounds like a missing Dynamic Link Library (DLL)

_________________________
One of the few remaining Mk1 owners... #00015

Top
#8548 - 29/05/2000 20:36 Re: Emplode fails with beta11pre [Re: andy]
muzza
Pooh-Bah

Registered: 21/07/1999
Posts: 1765
Loc: Brisbane, Queensland, Australi...
does it work under win98?

____________________________
Murray
_________________________
-- Murray I What part of 'no' don't you understand? Is it the 'N', or the 'Zero'?

Top
#8549 - 29/05/2000 22:08 Re: Emplode fails with beta11pre [Re: andy]
TommyE
enthusiast

Registered: 08/06/1999
Posts: 356
Loc: NORWAY
Mine too on W2k.

I had it up and running once, synced some files. Started over again ... -> KO.

TommyE


Top
#8550 - 30/05/2000 03:13 Re: Emplode fails with beta11pre [Re: schofiel]
mac
addict

Registered: 20/05/1999
Posts: 411
Loc: Cambridge, UK
Sounds like a missing Dynamic Link Library (DLL)

Sounds more like someone calling abort(), probably an uncaught exception. I reproduced it myself on Windows 2000 yesterday but NT4 seems fine (so I expect Windows 98 will also be fine).

*dons virtual deer stalker...*

--
Mike Crowe
I may not be speaking on behalf of empeg above :-)
_________________________
--
Mike Crowe

Top
#8551 - 30/05/2000 06:43 Re: Emplode fails with beta11pre [Re: mac]
mac
addict

Registered: 20/05/1999
Posts: 411
Loc: Cambridge, UK
In fact it was an uncaught exception (which calls terminate() which calls abort()) due to Windows 2000 not complying with the documentation for RegQueryValueEx.

Anyway, there's a fixed version up there now.

--
Mike Crowe
I may not be speaking on behalf of empeg above :-)
_________________________
--
Mike Crowe

Top
#8552 - 30/05/2000 09:31 Re: Emplode fails with beta11pre [Re: mac]
dionysus
veteran

Registered: 16/06/1999
Posts: 1222
Loc: San Francisco, CA
In reply to:

due to Windows 2000 not complying with the documentation for RegQueryValueEx.


Did you really expect microsoft's features to be documented correctly? :)
-mark

...proud to have one of the first Mark I units

_________________________
http://mvgals.net - clublife, revisited.

Top
#8553 - 30/05/2000 09:37 Re: Emplode fails with beta11pre [Re: mac]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
I would love to know what the problem was with that particular function, so that I may avoid it in the future. It's such a commonly-used function that I'm sure I'd run into the same problem in one of my programs eventually. What was it, exactly?

___________
Tony Fabris
_________________________
Tony Fabris

Top
#8554 - 31/05/2000 05:24 Re: Emplode fails with beta11pre [Re: tfabris]
mac
addict

Registered: 20/05/1999
Posts: 411
Loc: Cambridge, UK
The size passed back for a REG_SZ (or similar) is documented as including the space taken by the '\0' terminator. If the entry is an empty string it appears that Windows 2000 incorrectly returns 0 rather than 1.

--
Mike Crowe
I may not be speaking on behalf of empeg above :-)
_________________________
--
Mike Crowe

Top
#8555 - 31/05/2000 09:02 Re: Emplode fails with beta11pre [Re: mac]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
So you're saying that, in the case of an empty string, lpcbData returns "1" on Win98, and "0" on Win2k?

That sucks.

The docs aren't clear on what the function should return in the case of an empty string. Personally, I would expect it to treat an empty string as a null string and always return 0.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#8556 - 01/06/2000 08:52 Re: Emplode fails with beta11pre [Re: tfabris]
mac
addict

Registered: 20/05/1999
Posts: 411
Loc: Cambridge, UK
The docs aren't clear on what the function should return in the case of an empty string.

What is unclear about:

"If the data has the REG_SZ, REG_MULTI_SZ or REG_EXPAND_SZ type, then lpcbData will also include the size of the terminating null character."

?


--
Mike Crowe
I may not be speaking on behalf of empeg above :-)
_________________________
--
Mike Crowe

Top
#8557 - 01/06/2000 09:28 Re: Emplode fails with beta11pre [Re: mac]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
What's unclear is that the terminating null only counts when there's actually a string to return. I'm pretty sure that, as far as Windows is concerned, a valid string which happens to be zero length is not the same as a null pointer to a string which doesn't exist. But they don't bother to tell you that or anything. The docs should specify exactly what that value should be if a null string is returned.

Difficult string handling is the only thing which pisses me off about C. I'll bet that if you totaled up all of the bugs and crashes in Windows software throughout history, the majority of them could be traced back to string-related things like trashed pointers and strings which aren't bounds-checked. If C had been built with proper native string handling from the beginning, all our jobs would be a lot easier.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#8558 - 01/06/2000 12:10 Re: Emplode fails with beta11pre [Re: mac]
ccrobin
stranger

Registered: 26/05/2000
Posts: 49
Loc: Minnesota, USA
I don't know the first thing about programmong, so there's plenty about that statement that is confusing. :)

I'm glad there's guys (and/or gals) like you that understand this stuff.

"I drank what?" - Socrates

Top
#8559 - 02/06/2000 03:16 Re: Emplode fails with beta11pre [Re: tfabris]
mac
addict

Registered: 20/05/1999
Posts: 411
Loc: Cambridge, UK
But if there's nothing to return then it fails. A null string is "", i.e. vaguely like &'\0', therefore the length returned should be one. A null _pointer_ is a completely different vessel of fish.

--
Mike Crowe
I may not be speaking on behalf of empeg above :-)
_________________________
--
Mike Crowe

Top
#8560 - 02/06/2000 17:14 Re: Emplode fails with beta11pre [Re: tfabris]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Difficult string handling is the only thing which pisses me off about C. I'll bet that if you totaled up all of the bugs and crashes in Windows software throughout history, the majority of them could be traced back to string-related things like trashed pointers and strings which aren't bounds-checked. If C had been built with proper native string handling from the beginning, all our jobs would be a lot easier.

Yeah, i have always maintained that C was but a mildly structured variant of assembly :)

Cheers!

Dragi "Bonzi" Raos
Zagreb, Croatia
#5196
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top