minor 1030 emergeCommand bug

Questions and Answers regarding Emerge Desktop.

minor 1030 emergeCommand bug

Postby Link » Wed Feb 15, 2012 6:18 am

If you launch "cmd " with emergecommand, it throws an error and crashes.
1030 again
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------




This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


---------------------------
OK
---------------------------
All computers: Win8 Pro
Experimenting with emerge on 8 on laptop.
Link
 
Posts: 103
Joined: Sun Jun 22, 2008 7:26 pm

Postby ironhead » Wed Feb 15, 2012 11:39 am

Works for me (I use it often).... which version of Windows are you seeing this behaviour on?
Bleeding edge eD on Win7 x64 and x86
User avatar
ironhead
Site Admin
 
Posts: 1312
Joined: Mon Oct 10, 2005 5:10 pm

Postby Xaero » Wed Feb 15, 2012 11:50 am

Aye, I just tested with 1030 as well and it worked flawlessly.
GTalk only: xaero@xaerolimit.net
Image: 6.0/ImageWin7 x64 Enterprise
Xaero
 
Posts: 174
Joined: Thu Sep 20, 2007 8:26 pm

Postby MeToo » Wed Feb 15, 2012 3:59 pm

No problem at all with version 1030 (or any other). I use that command several times per day...

Since the error refers to MSVC Runtime, and eD doesn't use MSVC, it must be something else crashing...
Image build 6.2.0.1338
Image XP Pro x86 SP3
MeToo
 
Posts: 2341
Joined: Tue Oct 11, 2005 11:35 am
Location: Faro, Portugal

Postby Link » Wed Feb 15, 2012 11:39 pm

did you guys type the space after cmd? I did say "cmd " not "cmd"

:D probably should have mentioned that. It's not correct syntax for sure, but I thought I'd offer it up for error handling / stability. Plus you never know where this might manifest itself as a more serious flaw somewhere down the line :)

Confirmed crash on both XP SP3 x86 and 7 x64 (SP1)
Last edited by Link on Wed Feb 15, 2012 11:44 pm, edited 2 times in total.
All computers: Win8 Pro
Experimenting with emerge on 8 on laptop.
Link
 
Posts: 103
Joined: Sun Jun 22, 2008 7:26 pm

Postby Xaero » Wed Feb 15, 2012 11:41 pm

Reproduced - emergeCommand crashed too.
GTalk only: xaero@xaerolimit.net
Image: 6.0/ImageWin7 x64 Enterprise
Xaero
 
Posts: 174
Joined: Thu Sep 20, 2007 8:26 pm

Postby Link » Wed Feb 15, 2012 11:53 pm

I don't know how this would work with the new multiple instances, but might I suggest having "emerge.exe activate emergecommand" start emergecommand if it is not running?
All computers: Win8 Pro
Experimenting with emerge on 8 on laptop.
Link
 
Posts: 103
Joined: Sun Jun 22, 2008 7:26 pm

Postby MeToo » Thu Feb 16, 2012 7:49 am

Link wrote::D probably should have mentioned that. It's not correct syntax for sure, but I thought I'd offer it up for error handling / stability. Plus you never know where this might manifest itself as a more serious flaw somewhere down the line :)


Yes you should have mentioned the space :)
I can confirm the crash although I wouldn't imagine why someone would type a space after cmd :P

But it does deserve to be fixed just in case ;)

Link wrote:I don't know how this would work with the new multiple instances, but might I suggest having "emerge.exe activate emergecommand" start emergecommand if it is not running?


I have suggested to go back to the previous method where executing emergeCommand a second time activates the command line. This way you can have a single hotkey for emergeCommand. If it's already running pressing it once will activate the command line, if it is not running you just need to press it twice...

Other ideas?
Image build 6.2.0.1338
Image XP Pro x86 SP3
MeToo
 
Posts: 2341
Joined: Tue Oct 11, 2005 11:35 am
Location: Faro, Portugal

Postby Link » Thu Feb 16, 2012 8:40 am

MeToo wrote:
Link wrote:I don't know how this would work with the new multiple instances, but might I suggest having "emerge.exe activate emergecommand" start emergecommand if it is not running?


I have suggested to go back to the previous method where executing emergeCommand a second time activates the command line. This way you can have a single hotkey for emergeCommand. If it's already running pressing it once will activate the command line, if it is not running you just need to press it twice...

Other ideas?


Just move the code from "emerge.exe activate emergecommand" to emergecommand.exe. This way, you can retain the new feature of separate instances, by passing the proper arguments to emergecommand.exe...

Or have emerge.exe check if emergecommand is running before trying to activate it.

I can't really come up with a solution that is simple unless I know how multiple instances are handled; is it in a config file somewhere? Does it create emergecommand.1.xml and emergecommand.2.xml and so on? If so, then I assume that when emergecommand is started with no arguments, the first instance is created. Does the second instance get created if executed again? I should play around with this I guess.
All computers: Win8 Pro
Experimenting with emerge on 8 on laptop.
Link
 
Posts: 103
Joined: Sun Jun 22, 2008 7:26 pm

Postby ironhead » Thu Feb 16, 2012 12:32 pm

Link wrote:did you guys type the space after cmd? I did say "cmd " not "cmd"

:D probably should have mentioned that. It's not correct syntax for sure, but I thought I'd offer it up for error handling / stability. Plus you never know where this might manifest itself as a more serious flaw somewhere down the line :)


Indeed, missed the space the first time I read this. I'll investigate as time permits.
Bleeding edge eD on Win7 x64 and x86
User avatar
ironhead
Site Admin
 
Posts: 1312
Joined: Mon Oct 10, 2005 5:10 pm

Postby ironhead » Sat Feb 18, 2012 2:44 am

Fixed in revision 1044, thanks for the report! :)
Bleeding edge eD on Win7 x64 and x86
User avatar
ironhead
Site Admin
 
Posts: 1312
Joined: Mon Oct 10, 2005 5:10 pm

Postby ironhead » Sat Feb 18, 2012 11:39 pm

Additionally as of revision 1045, Activate will also start an applet if it's not already running.

Note: this only works for the primary instance of an applet. The changes to allow it to work for additional instances of an applet will come in a future release.
Bleeding edge eD on Win7 x64 and x86
User avatar
ironhead
Site Admin
 
Posts: 1312
Joined: Mon Oct 10, 2005 5:10 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron