Author Topic: Asmc and Visual Studio  (Read 880 times)

Greenhorn

  • Member
  • **
  • Posts: 155
Re: Asmc and Visual Studio
« Reply #15 on: December 24, 2020, 07:56:34 AM »
Hi nidud,

unfortunately the same error (it is jinxed).



D:\Eigene Dateien\Documents\ASMC Assembler\Projekte\CoolCtrl\CoolCtrl06\CoolCtrl>asmc64.exe /c /swc /ws /Sg /Fo"x64\Debug\CoolCtrl.obj" /D"COOLCTRL_DLL" /D"WIN32" /D"_WIN64" /D"_DEBUG" /D"_WINDOWS" /D"_UNICODE" D"UNICODE" /Fl"x64\Debug\CoolCtrl.lst" /I"D:\Win7Inc\Include" /Zi8 /Cp /W2 /win64 /Zp8   CoolCtrl.asm
Asmc Macro Assembler (x64) Version 2.32.13
Copyright (C) The Asmc Contributors. All Rights Reserved.
Portions Copyright (C) 1984-2002 Sybase, Inc. All Rights Reserved.

 Assembling: CoolCtrl.asm

CONTEXT:
        Exception Code: C0000005
        Exception Flags 00000000

                EAX: 0187BC48 EDX: 0000002B
                EBX: 0000002B ECX: 0187BC4C
                EIP: 00000004 ESI: 00000053
                EBP: 0018FD74 EDI: 0000002B
                ESP: 0018FBF0

        Flags:  1011110001001100
                r n oditsz a p c

ASMC : fatal error A1901: Internal Assembler Error

D:\Eigene Dateien\Documents\ASMC Assembler\Projekte\CoolCtrl\CoolCtrl06\CoolCtrl
>


I can provide you with my project files if it helps...


Merry Xmas

Greenhorn

  • Member
  • **
  • Posts: 155
Re: Asmc and Visual Studio
« Reply #16 on: December 24, 2020, 08:06:47 AM »
Crashes at the same point, it seems, object file is again 720 KB +/-1.

nidud

  • Member
  • *****
  • Posts: 2032
    • https://github.com/nidud/asmc
Re: Asmc and Visual Studio
« Reply #17 on: December 24, 2020, 08:18:00 AM »
I can provide you with my project files if it helps...

Yes, that may be helpful. Do you use the Asmc\include files?

Greenhorn

  • Member
  • **
  • Posts: 155
Re: Asmc and Visual Studio
« Reply #18 on: December 24, 2020, 09:22:47 AM »
I can provide you with my project files if it helps...

Yes, that may be helpful. Do you use the Asmc\include files?

I really want to use the asmc includes but I'm using some common macros of the windows include files, e.g. min/max, LOWORD/HIWORD; MAKELPARAM; etc...
But these macros in the asmc includes just work with intermediates and not with registers or variables. That's why I'm still sticking with my own includes.

Unfortunately I was not able to upload an attachment, so I had to find another way, sorry ...
https://filehorst.de/d/dJvvnHlc

nidud

  • Member
  • *****
  • Posts: 2032
    • https://github.com/nidud/asmc
Re: Asmc and Visual Studio
« Reply #19 on: December 24, 2020, 11:24:30 AM »
I found the crash-bug in the COFF section so this is fixed in v2.32.14.

Greenhorn

  • Member
  • **
  • Posts: 155
Re: Asmc and Visual Studio
« Reply #20 on: December 24, 2020, 11:24:39 AM »
For a better view set tab size to five...

Ooops, thanks a lot.  :thumbsup: I'll give it a try and report tomorrow.
Thanks for the christmas present. ;O)

Greenhorn

  • Member
  • **
  • Posts: 155
Re: Asmc and Visual Studio
« Reply #21 on: December 24, 2020, 11:34:03 AM »
Getting now error from link.exe:

1>LINK : fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006BA)'

Will try on tomorrow ...

Greenhorn

  • Member
  • **
  • Posts: 155
Re: Asmc and Visual Studio
« Reply #22 on: December 24, 2020, 11:59:35 PM »
OK then...
Binaries are created and I can execute the application but debugging fails.

Output from build:
1>------ Erstellen gestartet: Projekt: CoolCtrl, Konfiguration: Debug x64 ------
1>  Assembling CoolCtrl.asm ...
1>  Assembling CoolCtrlTheme.asm ...
1>  Assembling CoolPopup.asm ...
1>  Assembling CoolSplitBar.asm ...
1>  Assembling CoolStatusbar.asm ...
1>  Assembling CoolTab.asm ...
1>  Assembling CoolCmdBar.asm ...
1>  Assembling CoolCmdBarDock.asm ...
1>  Assembling stdafx.asm ...
1>  Assembling CoolMenu.asm ...
1>  Assembling CoolMenuDraw.asm ...
1>  Assembling CoolMenuInfo.asm ...
1>     Creating library D:\Eigene Dateien\Documents\ASMC Assembler\Projekte\CoolCtrl\CoolCtrl06\x64\Debug\CoolCtrl.lib and object D:\Eigene Dateien\Documents\ASMC Assembler\Projekte\CoolCtrl\CoolCtrl06\x64\Debug\CoolCtrl.exp
1>LINK : fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006BA)'
2>------ Erstellen gestartet: Projekt: CoolCtrlDemo, Konfiguration: Debug x64 ------
2>  Assembling Demo.asm ...
2>  Assembling stdafx.asm ...
2>  Assembling Toolbars.asm ...
2>  CoolCtrlDemo.vcxproj -> D:\Eigene Dateien\Documents\ASMC Assembler\Projekte\CoolCtrl\CoolCtrl06\x64\Debug\CoolCtrlDemo.exe
========== Erstellen: 1 erfolgreich, Fehler bei 1, 0 aktuell, 0 ├╝bersprungen ==========


If I set a break point the debbugger doesn't stop there (no debug information for the line(s) found).
No matter if I set the break point in the demo exe or in the dll.

nidud

  • Member
  • *****
  • Posts: 2032
    • https://github.com/nidud/asmc
Re: Asmc and Visual Studio
« Reply #23 on: December 25, 2020, 02:54:29 AM »
I downloaded the Win7.1 SDK in an attempt to build the project but that didn't work very well so now the project file is corrupt for some reason. I do however get the same from VS 2015 on other projects that works fine using CV4, so you could try a rebuild using /Zi and see how that goes.

So far it seems CV8 only works where CV4 stopped working (VS 2017/19).

Greenhorn

  • Member
  • **
  • Posts: 155
Re: Asmc and Visual Studio
« Reply #24 on: December 29, 2020, 11:52:31 AM »
I've rebuildt it with /Zi3 and it works like it did before experimenting with CV8 but now void* is displayed wrong formatted.
      hwnd   0x0000:0x0738   void *

Should be like 0x0000000000000738 or so.

[EDIT] IIRC, I also had this issue with an older version of asmc but cannot recall the version number.[/EDIT]
[EDIT] void ** is OK
      hImgList   0x0000000000254520   void * *
[/EDIT]

I downloaded the Win7.1 SDK in an attempt to build the project but that didn't work very well ...
What if you change the targetver.inc to Win10 and use the libs of the Win10 SDK in VS ?