Home Page link  

Microsoft Store Operations POS: Attempt to process COM object 'ObjectName' failed. An unknown error ocurred.

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here

 Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Microsoft Store Operations POS: Attempt to process COM object 'ObjectName' failed. An unknown error ocurred. Oliver 06-11-2008
Posted by Oliver on June 11, 2008, 5:01 pm
Please log in for more thread options
I have a program that gets executed in POS. Occasionally POS closes
that program in the midle of execution; after trying to restart it the
error message shows "Attempt to process COM object 'ObjectName'
failed. An unknown error occurred." I am invoking this program from
Custom POS Button. Here is entry code. The exception below is never
executed.

namespace FrameWiz
{
[ComVisible(true)]
public class Startup
{
public bool Process(object argSession)
{
        FrameWizShell frameWizShell = null;
        Session mySession = null;

        try
        {
//mine code here

return true;
        }
        catch(Exception)
        {
         throw;
        }
        finally
        {
         frameWizShell.Dispose();
         mySession.Destroy();
        }
}
}
}

Posted by Ryan on June 11, 2008, 5:05 pm
Please log in for more thread options
Two biggy problems with this code. One, you should never catch an exception
if you do nothing with it. Either get rid of your catch, or use it (log, or
pop up a message box). Two, don't destroy your session. By doing this you
are probably hurting rms. Unless you explicitly created the session object
(which you did not, RMS passed it to you), you should not destroy it. Just
my $.02.

--
Thank you,
Ryan Sakry
Program Manager
Retail Information Technology Enterprises
320-230-2288
rsakry@rite.us
www.rite.us
>I have a program that gets executed in POS. Occasionally POS closes
> that program in the midle of execution; after trying to restart it the
> error message shows "Attempt to process COM object 'ObjectName'
> failed. An unknown error occurred." I am invoking this program from
> Custom POS Button. Here is entry code. The exception below is never
> executed.
>
> namespace FrameWiz
> {
> [ComVisible(true)]
> public class Startup
> {
> public bool Process(object argSession)
> {
> FrameWizShell frameWizShell = null;
> Session mySession = null;
>
> try
> {
> //mine code here
>
> return true;
> }
> catch(Exception)
> {
> throw;
> }
> finally
> {
> frameWizShell.Dispose();
> mySession.Destroy();
> }
> }
> }
> }



Posted by Oliver on June 11, 2008, 7:16 pm
Please log in for more thread options
> Two biggy problems with this code. =A0One, you should never catch an excep=
tion
> if you do nothing with it. =A0Either get rid of your catch, or use it (log=
, or
> pop up a message box). =A0Two, don't destroy your session. =A0By doing thi=
s you
> are probably hurting rms. =A0Unless you explicitly created the session obj=
ect
> (which you did not, RMS passed it to you), you should not destroy it. =A0J=
ust
> my $.02.
>
> --
> Thank you,
> Ryan Sakry
> Program Manager
> Retail Information Technology Enterprises
> 320-230-2288
sage
>
>
>
>
> >I have a program that gets executed in POS. Occasionally POS closes
> > that program in the midle of execution; after trying to restart it the
> > error message shows "Attempt to process COM object 'ObjectName'
> > failed. An unknown error occurred." I am invoking this program from
> > Custom POS Button. Here is entry code. The exception below is never
> > executed.
>
> > namespace FrameWiz
> > {
> > =A0 =A0[ComVisible(true)]
> > =A0 =A0public class Startup
> > =A0 =A0{
> > =A0 =A0 =A0 =A0public bool Process(object argSession)
> > =A0 =A0 =A0 =A0{
> > FrameWizShell frameWizShell =3D null;
> > Session mySession =3D null;
>
> > try
> > {
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0//mine code here
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return true;
> > }
> > catch(Exception)
> > {
> > =A0 =A0 throw;
> > }
> > finally
> > {
> > =A0 =A0 frameWizShell.Dispose();
> > =A0 =A0 mySession.Destroy();
> > }
> > =A0 =A0 =A0 =A0}
> > =A0 =A0}
> > }- Hide quoted text -
>
> - Show quoted text -

Thank you for your response. I am aware of problems described. I just
added try, catch, finally statement recently after getting this error
for a while and I added code to destroy Session just before posting
this message. I have been getting this error for a while now on number
of computers and was not able to fix it. I cannot debug this neither
because the error occurs on some of the clients computers. I was not
able to replicate it on my computer so far. Bottom line without try,
catch, finally, disposing, or destroying any object the POS
occasionally closes down my program.

Regards

Similar ThreadsPosted
Attempt to process COM object "Valutecgiftcards" has failed November 2, 2005, 3:46 pm
Attempt to execute com object RmsGcm.Rms failed September 1, 2005, 4:01 pm
Attempt to execute com object 'mix.discount' failed. could not cre November 12, 2007, 7:51 pm
Need help on: "Attempt to execute COM object 'MyTest.MyTest' failed. Could not create object." July 12, 2005, 4:26 am
Atempt to process COM object failed March 21, 2007, 6:21 am
Atempt to process COM object VerifyCust.cVerifyCust failed. July 14, 2005, 3:21 pm
error 2147024769 method of object failed July 25, 2007, 4:48 pm
Attempt To Execute Com Object March 7, 2007, 11:48 am
microsoft store operations credit card settlement September 9, 2005, 11:54 am
Microsoft Reatil Store Operations "POS" Configuration problem September 25, 2006, 8:30 pm

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap