Results 1 to 6 of 6

Thread: strange problem

  1. #1

    Thread Starter
    Hyperactive Member Kirun's Avatar
    Join Date
    Oct 2001
    Location
    Karachi , Pakistan
    Posts
    333

    strange problem

    i know i m doing this thing wrong.. but i m desperate for answers.. if i found no soloution i have to formate my PC
    here is my problem which i have posted a while ago in general section of this forum... then i though this question belongs to here i think.. n e ways below is my problem

    am having a very stange problem.. which is making me insane...
    i have built some dll and register it.. then i used them in my application after making the apllication i found that there is more to be done with dll .. so i opend the class file n make changes n agian complie and and set its refrence to my application..

    first this procedure works fine.. but when i repeatedly did that .. i start giving me errors some time AUtomation error and some time Type mismatch error.. whhat i did then .. i went to class file again.. recompile it(even i havent made n e changes) ... remove the refrence of that dll from my application and again set the refrence that dll after recompiling it and strange enough this procedure works well..

    but now.. this procedure is not woking and its giving me error and this time only one error TYPE MISMATCH....
    i have cheked my code by adding classes to my application instead of dll its working fine but the dll is rasing error.. n e soloution to this .....

  2. #2
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    Well a TYPE MISMATCH can only mean one thing. A Perameter of a Method is expecting one kind of variable but it is getting a different kind.


    Doesnt it highlight where the error is occuring? I mean when you debug the DLL you are using Break in CLass Module right? It should show where the error is occuring
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  3. #3
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    What you need to do is have both projects running at the same time - that way u can debug both.
    Open the project file that references the dll, click on File and then Add Project. Browse to the project file for the Dll and double click it. In the project explorer window, right click on the main project (the application) and click on the Set as Startup option.

    Start the project with a full compile (Ctrl-F5), and do whatever causes the error again - i'm willing to place bets that VB will take you to the Dll project & show where the error is raised.

  4. #4

    Thread Starter
    Hyperactive Member Kirun's Avatar
    Join Date
    Oct 2001
    Location
    Karachi , Pakistan
    Posts
    333

    no its not doing

    i have done what you have said anxion but its not working at all.. i have said that when i include the class files in project it work fine and the moment i complile and set its dll refrence this error pops up..

  5. #5
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    So it only happens after it's compiled?

    Have you tried running it as full compile for the IDE?(Ctrl+F5)

    It could be something in the compiler. What Compile settings are you using?

    Try compiling with Native COde and Select No Optimization and then try it. If you still get the error then you know it's not a compiler problem but a Code problem.
    Last edited by Arc; Apr 26th, 2002 at 02:22 AM.
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  6. #6

    Thread Starter
    Hyperactive Member Kirun's Avatar
    Join Date
    Oct 2001
    Location
    Karachi , Pakistan
    Posts
    333

    Lightbulb yeh thanks to GOD and you ppl

    yeh i have figuered our that .. that was a binary compatibility issue .. once i resolved it it stop giving me problems....

    thanks for all your time and concern...

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