I've split my app up into a main .EXE and two supporting DLLs.
One of the DLLs acts as a reporting module. It's rather large
right now and approaching the 16K line limit of the PB IDE. This
code compiles without error.
However, when executing, I get the dreaded "This program has
performed an illegal operation and will be shut down." error after
the "Setting strings" message box. The following message boxes
are not displayed.
Any ideas?!?!?
------------------
Bernard Ertl
One of the DLLs acts as a reporting module. It's rather large
right now and approaching the 16K line limit of the PB IDE. This
code compiles without error.
However, when executing, I get the dreaded "This program has
performed an illegal operation and will be shut down." error after
the "Setting strings" message box. The following message boxes
are not displayed.
Any ideas?!?!?
Code:
FOR J& = 1 TO UBOUND( Shifts$()) szTemp = Shifts$( J&) SSSetData hSpread&, 1, y&, szTemp szTemp = FORMAT$( TPre&( J&) + TTA&( J&) + TPost&( J&)) SSSetData hSpread&, 2, y&, szTemp szTemp = FORMAT$( TotalRevHours&( J&)) SSSetData hSpread&, 3, y&, szTemp szTemp = FORMAT$( LvlCrew&( J&)) SSSetData hSpread&, 5, y&, szTemp szTemp = FORMAT$( Crew&( J&)) SSSetData hSpread&, 4, y&, szTemp MSGBOX "setting string" 'I get an error after this MSGBOX szTemp = szTemp + "," + FORMAT$( LvlCrew&( J&)) MSGBOX "setting data in spread" 'This MSGBOX is not displayed SSSetData hSpread&, 6, y&, szTemp MSGBOX "no problem" IF y& = SSGetMaxRows( hSpread&) THEN SSSetMaxRows hSpread&, y& + %DefaultCPMArraySize INCR y& NEXT
Bernard Ertl
Comment