I have a project that runs fine under Win7 and Vista, but GPFs under XP. I have been able to isolate this to the Firelink control by debugging codegen_main in PB 10.3.
Here are the debug results:
Begin Debug at 8:06:58 PM on 7/22/2012
Exception: Memory Access Violation
Program tried to read or write an invalid memory address
End Debug at 8:08:19 PM on 7/22/2012
Error happened at line in red:
FUNCTION FireLink_LoadIcon_HAND_CUR( BYVAL nWidth AS LONG, BYVAL nHeight AS LONG ) AS LONG
DIM pData AS DWORD PTR
pData = CODEPTR( LoadIcon_link_ico_Data ) + 14
FUNCTION = CreateIconFromResourceEx( BYVAL pData - 14 + @pData[1], @pData[0], 1, &H30000&, nWidth, nHeight, %LR_DEFAULTCOLOR ) EXIT FUNCTION
My project consists of 80 forms, numerous tabs, splitters and child forms. No MDI and no 3rd party controls. If I create a simple project with FireLink controls, it will run in XP. I deleted the FireLink controls in my main project, compliled and it runs in XP. All the FireLink controls had the BulletGraphic property set to none.
That is strange because I never used to have any problems with the FireLink control on WinXP systems. I have several programs that use FireLink. Granted, I stopped using WinXP on all my systems in January so maybe a security patch or something since then has altered the behaviour.
I will have to test this on my older laptop.
Quote
If I create a simple project with FireLink controls, it will run in XP.
Did you mean to say that it will
not run in XP?
This particular program will not run in XP. Windows gives me a user32.dll error at offset 00014a22. It will compile on XP with no errors - just won't run. I do have a version of the affected program from May 22nd (shortly after I upgraded to 3.6) which works. Since then I have set the FontUpgrade to true on hundreds of controls and added tooltips to numerous controls - but I don't know if that has anything to do with current problem. I also tried upgrading to 3.61 but still had the problem.
I have tried creating new projects with Firelink controls and they run in XP. The only other thing I can see is that the problem project which was created in Win7 has all the FireLink resize rules set to FL,FB,FL,FB. When I try to set resize rules in XP, I can select the same, but the ResizeRule property in the designer is set to (Control will not resize). I will try using the FF_Control_SetLoc on the FireLink controls and remove the resize positioning to see if the works.