Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Error pop up everytime

Error pop up everytime

Error pop up everytime

Did anyone encounter this pop up message?

Is this related to the $objecthandle$ commandline?


RE: Error pop up everytime

That's not a normal error. What exactly were you doing? Are you running Sage 300 ERP?

Sage 300 Whisperer

RE: Error pop up everytime

Oh wait, you're still trying to write a Sage program. You have a simple bug in your code, you need to fix it.

Sage 300 Whisperer

RE: Error pop up everytime

I don't know where exactly this error is. My program is just a UI and it just get the company name using the code snippet below:


Dim args As String() = Environment.GetCommandLineArgs()
            Dim j As Integer
            For j = 0 To (args.Length - 1)
                ObjectHandle = args(j)

            hWnd = Me.Handle

            mAccpacSignOn = New AccpacSignonManager.AccpacSignonMgr
            mAccpacSession = New AccpacCOMAPI.AccpacSession

            mAccpacSession.Init(ObjectHandle, "XY", "XY1000", "61A")
            'mAccpacDBLink = mAccpacSession.OpenDBLink(AccpacCOMAPI.tagDBLinkTypeEnum.DBLINK_COMPANY, AccpacCOMAPI.tagDBLinkFlagsEnum.DBLINK_FLG_READWRITE)

            rotoSetObjectWindow(ObjectHandle, hWnd)

            Dim mDBLinkCmpRW As AccpacCOMAPI.AccpacDBLink
            mDBLinkCmpRW = mAccpacSession.OpenDBLink(AccpacCOMAPI.tagDBLinkTypeEnum.DBLINK_COMPANY, AccpacCOMAPI.tagDBLinkFlagsEnum.DBLINK_FLG_READWRITE)

            Dim CSCOM As AccpacCOMAPI.AccpacView
            Dim CSCOMFields As AccpacCOMAPI.AccpacViewFields
            mDBLinkCmpRW.OpenView("CS0001", CSCOM)
            CSCOMFields = CSCOM.Fields


The back-end process transaction are coming from the services which is separate program.


RE: Error pop up everytime

Put in error trapping. You should be able to identify which line of code is causing the issue.

RE: Error pop up everytime

You don't need all of that if all you want is the company name, look at the AOM.

Sage 300 Certified Consultant

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close