Results 1 to 3 of 3

Thread: vb6.exe Application Error !? Origin ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Strasbourg
    Posts
    30

    vb6.exe Application Error !? Origin ?

    Hello,

    I have designed a VB program that calls a C DLL.
    Each time I call a function from the DLL, VB crashes with the following error:

    vb6.exe Apllication Error
    The instruction at "0x0FB3191D" referenced at "0x00000000".
    The memory could not be read.

    What could be the origin of this error and what's the solution ?

    Thanks in advance.

    she

  2. #2
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    Depends on how you declared them functions.

    You can't reference a C dll into your vb app.

    The functions must be declared in the general declerations section and used with the correct params.
    The names of the C dll can contain unrecognized words.
    ie underscores at the beginning cannot in vb then you have to use an alias
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Strasbourg
    Posts
    30
    Originally posted by swatty
    Depends on how you declared them functions.

    You can't reference a C dll into your vb app.

    The functions must be declared in the general declerations section and used with the correct params.
    The names of the C dll can contain unrecognized words.
    ie underscores at the beginning cannot in vb then you have to use an alias
    Thank you for your advices.
    I have already checked this. Nothing is wrong.
    I really don't know the origin of the problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width