Author Topic: Having trouble adding files from Menu or Project Explorer  (Read 8915 times)

rsala

  • Moderator
  • Member
  • *****
  • Posts: 272
    • Easy Code
Re: Having trouble adding files from Menu or Project Explorer
« Reply #15 on: January 27, 2014, 06:50:27 AM »
Hi,

I'm getting crazy with this. I'm terribly sorry but I can't see where the problem is so I can't fix it. Everything works fine in all computers and Windows platforms where I have tested Easy Code GoAsm.

I will keep on trying.

Ramon
EC coder

satpro

  • Member
  • **
  • Posts: 116
Re: Having trouble adding files from Menu or Project Explorer
« Reply #16 on: January 27, 2014, 07:22:16 AM »
Hi,

I'm getting crazy with this. I'm terribly sorry but I can't see where the problem is so I can't fix it. Everything works fine in all computers and Windows platforms where I have tested Easy Code GoAsm.

I will keep on trying.

Ramon

Hi Ramon,
You know what?  Don't sweat it.  No sense getting crazy over something one person (me) is talking about.  It must be something on my end.  Just wish I knew what.  I'll code the long way and just add the headers in code -- I am used to doing that anyhow.  The IDE is nice to work with, and it's really all I was after anyway, so that's good enough.  In the meantime, if I do manage to figure out what it is I'll be sure to report back.

Thanks for all your help,
Bert

anta40

  • Member
  • ***
  • Posts: 302
Re: Having trouble adding files from Menu or Project Explorer
« Reply #17 on: January 27, 2014, 11:36:04 PM »
Hi,

I'm getting crazy with this. I'm terribly sorry but I can't see where the problem is so I can't fix it. Everything works fine in all computers and Windows platforms where I have tested Easy Code GoAsm.

I will keep on trying.

Ramon

Hi Ramon,

Does EasyCode have a mechanism to generate error dump?
I know that not being able to reproduce bug can be very confusing, and in this case
examining error dump can provide some hints about the bug itself.

rsala

  • Moderator
  • Member
  • *****
  • Posts: 272
    • Easy Code
Re: Having trouble adding files from Menu or Project Explorer
« Reply #18 on: January 28, 2014, 06:37:09 AM »
Hi satpro,

Thanks a lot for you kind words. I'll try to find out the problem.

Ramon
EC coder

rsala

  • Moderator
  • Member
  • *****
  • Posts: 272
    • Easy Code
Re: Having trouble adding files from Menu or Project Explorer
« Reply #19 on: January 28, 2014, 06:41:21 AM »
Hi anta40,

Thanks for giving ideas.

No, unfortunately Easy Code does not have any mechanism to generate error dump.

Ramon
EC coder

jj2007

  • Member
  • *****
  • Posts: 8734
  • Assembler is fun ;-)
    • MasmBasic
Re: Having trouble adding files from Menu or Project Explorer
« Reply #20 on: January 28, 2014, 07:28:32 AM »
No, unfortunately Easy Code does not have any mechanism to generate error dump.

A simple debug macro could do the job, applied near the code area where the problem seems to be.
This one uses a switch; if usedeb=0, no extra code will be generated. With usedeb=1, extra checks are being performed, and a console window will be created to display the error line:
Code: [Select]
include \masm32\include\masm32rt.inc

usedeb=1 ; 0=no checks, 1=check
voidNonZero MACRO args
LOCAL tmp$
  @CatStr(<;>, <args>)
  if usedeb
.if !eax
pushad
invoke GetConsoleWindow
.if !eax ; must be SUBSYSTEM:WINDOWS...
invoke AllocConsole
.endif
tmp$ CATSTR <chr$("## eax is zero in line >, %@Line, < ##")>
print tmp$, 13, 10
popad
.endif
  endif
ENDM
.data
rc RECT <>
hWin dd ?
.code
start:
voidNonZero rv(GetConsoleWindow) ; uses Masm32 rv macro
invoke GetClientRect, edx, addr rc
voidNonZero eax ; more traditional
voidNonZero rv(GetClientRect, eax, addr rc)
MsgBox 0, str$(rc.right), "Pixels wide:", MB_OK
exit
end start

rsala

  • Moderator
  • Member
  • *****
  • Posts: 272
    • Easy Code
Re: Having trouble adding files from Menu or Project Explorer
« Reply #21 on: January 28, 2014, 08:15:11 AM »
Hi jj2007,

Thank you very much!

I will test the macro.

Ramon
EC coder

satpro

  • Member
  • **
  • Posts: 116
Re: Having trouble adding files from Menu or Project Explorer
« Reply #22 on: January 30, 2014, 08:15:03 AM »
I would like to announce that Ramon has taken the steps to fix my problem with adding include files through Project Explorer/Menu.  He did it in a professional, unrelenting manner (through personal messaging) that has left me impressed to the point of bewilderment.

Just thought everyone should know.

Thanks Ramon.  You're a class act for sure.

rsala

  • Moderator
  • Member
  • *****
  • Posts: 272
    • Easy Code
Re: Having trouble adding files from Menu or Project Explorer
« Reply #23 on: January 30, 2014, 10:07:43 AM »
satpro: Thank you very much for your help!

Thanks to satpro I have been able to fix the problem, although it has no sense and it seems not to happen in any other computer (that's the most mysterious) .

I expect to release a new version in a few days.

Thanks to everybody,

Ramon
EC coder